Skip to content

Commit 6e28a87

Browse files
committed
- fix Windows builds, cast int to size_t.
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15967 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent da09856 commit 6e28a87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SimulationRuntime/c/simulation/simulation_runtime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static void setTermMsg(const char *msg, va_list ap)
123123
size_t i;
124124
static size_t termMsgSize = 0;
125125
if (TermMsg==NULL) {
126-
termMsgSize = max(strlen(msg)*2+1,2048);
126+
termMsgSize = max(strlen(msg)*2+1,(size_t)2048);
127127
TermMsg = (char*) malloc(termMsgSize);
128128
}
129129
i = vsnprintf(TermMsg,termMsgSize,msg,ap);

0 commit comments

Comments
 (0)