mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-27 10:50:35 +00:00
Cast printf %p args to (void*).
This commit is contained in:
parent
978b1ed7f1
commit
d46bbcad44
@ -2661,7 +2661,7 @@ void printObj(JSObject *jsobj) {
|
||||
}
|
||||
|
||||
void printVal(jsval val) {
|
||||
fprintf(stderr, "val %d (0x%p) = ", val, val);
|
||||
fprintf(stderr, "val %d (0x%p) = ", val, (void *) val);
|
||||
if (JSVAL_IS_NULL(val)) {
|
||||
fprintf(stderr, "null\n");
|
||||
} else if (JSVAL_IS_VOID(val)) {
|
||||
@ -2683,7 +2683,7 @@ void printVal(jsval val) {
|
||||
}
|
||||
|
||||
void printId(jsid id) {
|
||||
fprintf(stderr, "id %d (0x%p) is ", id, id);
|
||||
fprintf(stderr, "id %d (0x%p) is ", id, (void *) id);
|
||||
printVal(js_IdToValue(id));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user