From db870f44289e73d7b5105c830683e738e759da54 Mon Sep 17 00:00:00 2001 From: adrpo Date: Fri, 10 Jul 2015 05:52:13 +0200 Subject: [PATCH] - use strol instead of strtoll as MSVC doesn't like it --- SimulationRuntime/c/simulation/simulation_runtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SimulationRuntime/c/simulation/simulation_runtime.cpp b/SimulationRuntime/c/simulation/simulation_runtime.cpp index d689560bf3a..71e02466e83 100644 --- a/SimulationRuntime/c/simulation/simulation_runtime.cpp +++ b/SimulationRuntime/c/simulation/simulation_runtime.cpp @@ -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]); }