From 60599a9f62f28beb114622b3c7f78701d35da27f Mon Sep 17 00:00:00 2001 From: "Howard M. Harte" Date: Wed, 23 Nov 2022 20:43:26 -0800 Subject: [PATCH] AltairZ80: HDC-1001: Fix MSVC /W4 warnings. --- AltairZ80/s100_hdc1001.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AltairZ80/s100_hdc1001.c b/AltairZ80/s100_hdc1001.c index 9e58352e..0f0f8480 100644 --- a/AltairZ80/s100_hdc1001.c +++ b/AltairZ80/s100_hdc1001.c @@ -308,7 +308,7 @@ static t_stat hdc1001_detach(UNIT *uptr) { HDC1001_DRIVE_INFO *pDrive; t_stat r; - int8 i; + int32 i; i = find_unit_index(uptr); @@ -333,7 +333,7 @@ static t_stat hdc1001_detach(UNIT *uptr) static t_stat hdc1001_unit_set_geometry(UNIT* uptr, int32 value, CONST char* cptr, void* desc) { HDC1001_DRIVE_INFO* pDrive; - int8 i; + int32 i; int32 result; uint16 newCyls, newHeads, newSPT, newSecLen; @@ -386,7 +386,7 @@ static t_stat hdc1001_unit_set_geometry(UNIT* uptr, int32 value, CONST char* cpt static t_stat hdc1001_unit_show_geometry(FILE* st, UNIT* uptr, int32 val, CONST void* desc) { HDC1001_DRIVE_INFO* pDrive; - int8 i; + int32 i; i = find_unit_index(uptr); @@ -407,7 +407,7 @@ static t_stat hdc1001_unit_show_geometry(FILE* st, UNIT* uptr, int32 val, CONST static int32 hdc1001dev(const int32 port, const int32 io, const int32 data) { if(io) { - HDC1001_Write(port, data); + HDC1001_Write(port, (uint8)data); return 0; } else { return(HDC1001_Read(port));