Ticket #1065: printf_signedness-fix.patch

File printf_signedness-fix.patch, 798 bytes (added by Echelon9, 12 years ago)

Proposed fix for ScriptingInterface.cpp

  • source/scriptinterface/ScriptInterface.cpp

     
    11021102#if MOZJS_DEBUG_ABI
    11031103    JS_DumpHeap(m->m_cx, stderr, NULL, 0, NULL, (size_t)-1, NULL);
    11041104#endif
    1105     fprintf(stderr, "# Bytes allocated: %d\n", JS_GetGCParameter(GetRuntime(), JSGC_BYTES));
     1105    fprintf(stderr, "# Bytes allocated: %u\n", JS_GetGCParameter(GetRuntime(), JSGC_BYTES));
    11061106    JS_GC(m->m_cx);
    1107     fprintf(stderr, "# Bytes allocated after GC: %d\n", JS_GetGCParameter(GetRuntime(), JSGC_BYTES));
     1107    fprintf(stderr, "# Bytes allocated after GC: %u\n", JS_GetGCParameter(GetRuntime(), JSGC_BYTES));
    11081108}
    11091109
    11101110void ScriptInterface::MaybeGC()