@@ -964,22 +964,22 @@ FormatString(
964964 else {
965965 switch (*++format) {
966966 case ' d' :
967- i += sprintf_s (&buf[i], BUFFER_SIZE + 32 - i, " %d" , (long )NumDiffsTotal[RLS_TOTAL ]);
967+ i += sprintf_s (&buf[i], BUFFER_SIZE + 32 - i, " %d" , (int32 )NumDiffsTotal[RLS_TOTAL ]);
968968 break ;
969969 case ' f' :
970- i += sprintf_s (&buf[i], BUFFER_SIZE + 32 - i, " %d" , (long )NumFailuresTotal[RLS_TOTAL ]);
970+ i += sprintf_s (&buf[i], BUFFER_SIZE + 32 - i, " %d" , (int32 )NumFailuresTotal[RLS_TOTAL ]);
971971 break ;
972972 case ' t' :
973- i += sprintf_s (&buf[i], BUFFER_SIZE + 32 - i, " %d" , (long )NumVariationsRun[RLS_TOTAL ]);
973+ i += sprintf_s (&buf[i], BUFFER_SIZE + 32 - i, " %d" , (int32 )NumVariationsRun[RLS_TOTAL ]);
974974 break ;
975975 case ' T' :
976- i += sprintf_s (&buf[i], BUFFER_SIZE + 32 - i, " %d" , (long )NumVariationsTotal[RLS_TOTAL ]);
976+ i += sprintf_s (&buf[i], BUFFER_SIZE + 32 - i, " %d" , (int32 )NumVariationsTotal[RLS_TOTAL ]);
977977 break ;
978978 case ' p' :
979- if ((long )NumVariationsTotal[RLS_TOTAL ]) {
979+ if ((int32 )NumVariationsTotal[RLS_TOTAL ]) {
980980 i += sprintf_s (&buf[i], BUFFER_SIZE + 32 - i, " %d" ,
981- 100 * (long )NumVariationsRun[RLS_TOTAL ] /
982- (long )NumVariationsTotal[RLS_TOTAL ]);
981+ 100 * (int32 )NumVariationsRun[RLS_TOTAL ] /
982+ (int32 )NumVariationsTotal[RLS_TOTAL ]);
983983 }
984984 else {
985985 i += sprintf_s (&buf[i], BUFFER_SIZE + 32 - i, " --" );
@@ -3377,7 +3377,7 @@ IsTimeoutStringValid(char *strTimeout) {
33773377 char *end;
33783378 _set_errno (0 );
33793379
3380- unsigned long secTimeout = strtoul (strTimeout, &end, 10 );
3380+ uint32 secTimeout = strtoul (strTimeout, &end, 10 );
33813381
33823382 if (errno != 0 || *end != 0 ) {
33833383 return FALSE ;
@@ -4602,9 +4602,9 @@ RegressDirectory(
46024602 if (FBaseDiff && !pDir->IsBaseline ())
46034603 pDir->InitStats (0 );
46044604
4605- ASSERTNR ((long )pDir->NumVariationsRun == 0 );
4606- ASSERTNR ((long )pDir->NumDiffs == 0 );
4607- ASSERTNR ((long )pDir->NumFailures == 0 );
4605+ ASSERTNR ((int32 )pDir->NumVariationsRun == 0 );
4606+ ASSERTNR ((int32 )pDir->NumDiffs == 0 );
4607+ ASSERTNR ((int32 )pDir->NumFailures == 0 );
46084608
46094609 if (!FNoDirName)
46104610 WriteLog (" *** %s ***" , dir);
@@ -5008,16 +5008,16 @@ main(int argc, char *argv[])
50085008
50095009 if (FRLFE ) {
50105010 if (Mode == RM_EXE ) {
5011- RLFEAddRoot (RLS_EXE , (long )NumVariationsTotal[RLS_EXE ]);
5011+ RLFEAddRoot (RLS_EXE , (int32 )NumVariationsTotal[RLS_EXE ]);
50125012 }
50135013 else {
50145014 if (FBaseline)
5015- RLFEAddRoot (RLS_BASELINES , (long )NumVariationsTotal[RLS_BASELINES ]);
5015+ RLFEAddRoot (RLS_BASELINES , (int32 )NumVariationsTotal[RLS_BASELINES ]);
50165016 if (FDiff)
5017- RLFEAddRoot (RLS_DIFFS , (long )NumVariationsTotal[RLS_DIFFS ]);
5017+ RLFEAddRoot (RLS_DIFFS , (int32 )NumVariationsTotal[RLS_DIFFS ]);
50185018 }
50195019
5020- RLFEAddRoot (RLS_TOTAL , (long )NumVariationsTotal[RLS_TOTAL ]);
5020+ RLFEAddRoot (RLS_TOTAL , (int32 )NumVariationsTotal[RLS_TOTAL ]);
50215021 }
50225022
50235023 DirectoryQueue.AdjustWaitForThreadCount ();
@@ -5073,5 +5073,5 @@ main(int argc, char *argv[])
50735073 // The return code from RL is 0 for complete success, 1 for any failure.
50745074 // Note that diffs don't count as failures.
50755075
5076- return ((long )NumFailuresTotal[RLS_TOTAL ] == 0L ) ? 0 : 1 ;
5076+ return ((int32 )NumFailuresTotal[RLS_TOTAL ] == 0L ) ? 0 : 1 ;
50775077}
0 commit comments