Skip to content

Commit

Permalink
- use strol instead of strtoll as MSVC doesn't like it
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo committed Jul 10, 2015
1 parent 1b3e57a commit db870f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimulationRuntime/c/simulation/simulation_runtime.cpp
Expand Up @@ -421,7 +421,7 @@ int startNonInteractiveSimulation(int argc, char**argv, DATA* data)
errno = 0;
if (omc_flag[FLAG_ALARM]) {
char *endptr;
mmc_sint_t alarmVal = strtoll(omc_flagValue[FLAG_ALARM],&endptr,10);
mmc_sint_t alarmVal = strtol(omc_flagValue[FLAG_ALARM],&endptr,10);
if (errno || *endptr != 0) {
throwStreamPrint(data->threadData, "-alarm takes an integer argument (got '%s')", omc_flagValue[FLAG_ALARM]);
}
Expand Down

0 comments on commit db870f4

Please sign in to comment.