mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
Bug 1232113 - "Make the format specifiers in JS_snprintf() invocations more portable". r=jandem
This commit is contained in:
parent
b4bc48a873
commit
f4960ee416
@ -973,7 +973,7 @@ js::Disassemble1(JSContext* cx, HandleScript script, jsbytecode* pc,
|
||||
|
||||
default: {
|
||||
char numBuf[12];
|
||||
JS_snprintf(numBuf, sizeof numBuf, "%lx", (unsigned long) cs->format);
|
||||
JS_snprintf(numBuf, sizeof numBuf, "%x", cs->format);
|
||||
JS_ReportErrorNumber(cx, GetErrorMessage, nullptr,
|
||||
JSMSG_UNKNOWN_FORMAT, numBuf);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user