Cleaned up some warnings found when compiling with Visual Studio Express 2010.

This commit is contained in:
skarg
2014-01-14 20:03:00 +00:00
parent bfa26b769f
commit c3326b324c
8 changed files with 23 additions and 20 deletions
+1 -1
View File
@@ -1389,7 +1389,7 @@ bool bacapp_print_value(
/* Try to extract the value into allocated memory. If unable, try again */
/* another time with a string that is twice as large. */
status = bacapp_snprintf_value(str, str_len, object_value);
if ((status < 0) || (status >= str_len)) {
if ((status < 0) || ((size_t)status >= str_len)) {
free(str);
str_len *= 2;
} else if (status == 0) {