[open-ils-commits] r7523 - trunk/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jul 5 16:36:22 EDT 2007
Author: miker
Date: 2007-07-05 16:32:28 -0400 (Thu, 05 Jul 2007)
New Revision: 7523
Modified:
trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
casting goodness, just because
Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2007-07-05 18:55:00 UTC (rev 7522)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2007-07-05 20:32:28 UTC (rev 7523)
@@ -948,7 +948,7 @@
char* jsonNumberToDBString ( osrfHash* field, jsonObject* value ) {
growing_buffer* val_buf = buffer_init(32);
- if ( !strncmp(osrfHashGet(field, "datatype"), "INT", 3) ) {
+ if ( !strncmp(osrfHashGet(field, "datatype"), "INT", (size_t)3) ) {
if (value->type == JSON_NUMBER) buffer_fadd( val_buf, "%ld", (long)jsonObjectGetNumber(value) );
else buffer_fadd( val_buf, "%ld", atol(jsonObjectToSimpleString(value)) );
More information about the open-ils-commits
mailing list