fix compile error on Linux by gcc 4.7

This commit is contained in:
Frank Watson Song 2014-04-01 17:34:28 +08:00
parent 731bc643d0
commit d8c7fd5161

View File

@ -111,11 +111,11 @@ void msgpack_object_print(FILE* out, msgpack_object o)
break;
case MSGPACK_OBJECT_POSITIVE_INTEGER:
fprintf(out, "%"PRIu64, o.via.u64);
fprintf(out, "%" PRIu64, o.via.u64);
break;
case MSGPACK_OBJECT_NEGATIVE_INTEGER:
fprintf(out, "%"PRIi64, o.via.i64);
fprintf(out, "%" PRIi64, o.via.i64);
break;
case MSGPACK_OBJECT_DOUBLE:
@ -164,7 +164,7 @@ void msgpack_object_print(FILE* out, msgpack_object o)
default:
// FIXME
fprintf(out, "#<UNKNOWN %i %"PRIu64">", o.type, o.via.u64);
fprintf(out, "#<UNKNOWN %i %" PRIu64 ">", o.type, o.via.u64);
}
}