diff --git a/src/json.c b/src/json.c index 5ab52c5b..e2cf057d 100644 --- a/src/json.c +++ b/src/json.c @@ -132,7 +132,7 @@ static int new_value values_size = sizeof (*value->u.object.values) * value->u.object.length; if (! ((*(void **) &value->u.object.values) = json_alloc - (state, values_size + ((unsigned long) value->u.object.values), 0)) ) + (state, values_size + ((unsigned long long) value->u.object.values), 0)) ) { return 0; } diff --git a/src/win32.c b/src/win32.c index 539a5033..c00f5f9e 100644 --- a/src/win32.c +++ b/src/win32.c @@ -33,7 +33,7 @@ void ss_error(const char *s) MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) &msg, 0, NULL); if (msg != NULL) { - LOGE("%s: %s", s, msg); + LOGE("%s: %s", s, (char *)msg); LocalFree(msg); } } @@ -41,7 +41,7 @@ void ss_error(const char *s) int setnonblocking(int fd) { u_long iMode = 0; - int iResult; + long int iResult; iResult = ioctlsocket(fd, FIONBIO, &iMode); if (iResult != NO_ERROR) { LOGE("ioctlsocket failed with error: %ld\n", iResult);