From a6a7f4b82d093d74c211c479830bf6d99e35bfaf Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 28 Nov 2012 17:28:38 +0000 Subject: [PATCH] Make Visual Studio happy as well. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3803 --- src/shell/shell_cmds.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shell/shell_cmds.cpp b/src/shell/shell_cmds.cpp index ab23be37..222c090c 100644 --- a/src/shell/shell_cmds.cpp +++ b/src/shell/shell_cmds.cpp @@ -962,9 +962,9 @@ void DOS_Shell::CMD_DATE(char * args) { // check if a date was passed in command line Bit32u newday,newmonth,newyear; if(sscanf(args,"%u-%u-%u",&newmonth,&newday,&newyear)==3) { - reg_cx = newyear; - reg_dh = newmonth; - reg_dl = newday; + reg_cx = static_cast(newyear); + reg_dh = static_cast(newmonth); + reg_dl = static_cast(newday); reg_ah=0x2b; // set system date CALLBACK_RunRealInt(0x21); @@ -980,7 +980,7 @@ void DOS_Shell::CMD_DATE(char * args) { char day[6] = {0}; if(sscanf(datestring,"%u",&length) && (length<5) && (strlen(datestring)==(length*7+1))) { // date string appears valid - for(int i = 0; i < length; i++) day[i] = datestring[reg_al*length+1+i]; + for(Bit32u i = 0; i < length; i++) day[i] = datestring[reg_al*length+1+i]; } bool dateonly = ScanCMDBool(args,"t"); if(!dateonly) WriteOut(MSG_Get("SHELL_CMD_DATE_NOW"));