Skip to content

Commit

Permalink
IBM360: Cleanup more Windows warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcornwell committed May 9, 2023
1 parent 07a7cac commit 0665e40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions IBM360/ibm360_chan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1537,11 +1537,11 @@ set_dev_addr(UNIT * uptr, int32 val, CONST char *cptr, void *desc)
DEVICE *dptr;
struct _dev *dev;
DIB *dibp;
t_value newdev;
uint16 newdev;
struct _dev *ndev;
t_stat r;
unsigned int i;
t_value devaddr;
uint16 devaddr;

if (cptr == NULL)
return SCPE_ARG;
Expand All @@ -1555,7 +1555,7 @@ set_dev_addr(UNIT * uptr, int32 val, CONST char *cptr, void *desc)
if (dibp == NULL)
return SCPE_IERR;

newdev = get_uint (cptr, 16, 0xfff, &r);
newdev = (uint16)(get_uint (cptr, 16, 0xfff, &r) & 0xfff);

if (r != SCPE_OK)
return r;
Expand Down

0 comments on commit 0665e40

Please sign in to comment.