libshared: fix x86_64 build
This commit is contained in:
@@ -99,7 +99,7 @@ BJson::Parse(BMessage& message, BString& JSON)
|
|||||||
|
|
||||||
if (_Parser_ParseConstant(JSON, pos, "true")) {
|
if (_Parser_ParseConstant(JSON, pos, "true")) {
|
||||||
if (builder.What() == JSON_TYPE_ARRAY)
|
if (builder.What() == JSON_TYPE_ARRAY)
|
||||||
key.SetToFormat("%zu", builder.CountNames());
|
key.SetToFormat("%" B_PRIu32, builder.CountNames());
|
||||||
builder.AddBool(key.String(), true);
|
builder.AddBool(key.String(), true);
|
||||||
key = "";
|
key = "";
|
||||||
} else
|
} else
|
||||||
@@ -117,7 +117,7 @@ BJson::Parse(BMessage& message, BString& JSON)
|
|||||||
|
|
||||||
if (_Parser_ParseConstant(JSON, pos, "false")) {
|
if (_Parser_ParseConstant(JSON, pos, "false")) {
|
||||||
if (builder.What() == JSON_TYPE_ARRAY)
|
if (builder.What() == JSON_TYPE_ARRAY)
|
||||||
key.SetToFormat("%zu", builder.CountNames());
|
key.SetToFormat("%" B_PRIu32, builder.CountNames());
|
||||||
builder.AddBool(key.String(), false);
|
builder.AddBool(key.String(), false);
|
||||||
key = "";
|
key = "";
|
||||||
} else
|
} else
|
||||||
@@ -135,7 +135,7 @@ BJson::Parse(BMessage& message, BString& JSON)
|
|||||||
|
|
||||||
if (_Parser_ParseConstant(JSON, pos, "null")) {
|
if (_Parser_ParseConstant(JSON, pos, "null")) {
|
||||||
if (builder.What() == JSON_TYPE_ARRAY)
|
if (builder.What() == JSON_TYPE_ARRAY)
|
||||||
key.SetToFormat("%zu", builder.CountNames());
|
key.SetToFormat("%" B_PRIu32, builder.CountNames());
|
||||||
builder.AddPointer(key.String(), (void*)NULL);
|
builder.AddPointer(key.String(), (void*)NULL);
|
||||||
key = "";
|
key = "";
|
||||||
} else
|
} else
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ status_t
|
|||||||
BMessageBuilder::PushObject(uint32 name)
|
BMessageBuilder::PushObject(uint32 name)
|
||||||
{
|
{
|
||||||
BString nameString;
|
BString nameString;
|
||||||
nameString.SetToFormat("%zu", name);
|
nameString.SetToFormat("%" B_PRIu32, name);
|
||||||
return PushObject(nameString.String());
|
return PushObject(nameString.String());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user