Bugfix: Use the right format string (Thanks pnutzh4x0r)

next
Michael Stapelberg 2011-08-04 23:34:23 +02:00
parent 7e0cbf18f9
commit f2e1e220a4
1 changed files with 2 additions and 1 deletions

View File

@ -153,10 +153,11 @@ static int json_string(void *ctx, const unsigned char *val, unsigned int len) {
#if YAJL_MAJOR >= 2
static int json_int(void *ctx, long long val) {
LOG("int %lld for key %s\n", val, last_key);
#else
static int json_int(void *ctx, long val) {
LOG("int %ld for key %s\n", val, last_key);
#endif
LOG("int %d for key %s\n", val, last_key);
if (strcasecmp(last_key, "type") == 0) {
json_node->type = val;
}