openbsd-ports/lang/spidermonkey/patches/patch-src_jsopcode_c

35 lines
1.4 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-src_jsopcode_c,v 1.3 2009/05/05 21:01:55 martynas Exp $
--- src/jsopcode.c.orig Thu Sep 27 21:30:18 2007
+++ src/jsopcode.c Sun May 3 23:07:02 2009
@@ -208,7 +208,7 @@ js_Disassemble1(JSContext *cx, JSScript *script, jsbyt
case JOF_JUMP:
case JOF_JUMPX:
off = GetJumpOffset(pc, pc);
- fprintf(fp, " %u (%d)", loc + off, off);
+ fprintf(fp, " %tu (%td)", loc + off, off);
break;
case JOF_CONST:
@@ -239,10 +239,10 @@ js_Disassemble1(JSContext *cx, JSScript *script, jsbyt
pc2 += JUMP_OFFSET_LEN;
high = GET_JUMP_OFFSET(pc2);
pc2 += JUMP_OFFSET_LEN;
- fprintf(fp, " defaultOffset %d low %d high %d", off, low, high);
+ fprintf(fp, " defaultOffset %td low %d high %d", off, low, high);
for (i = low; i <= high; i++) {
off = GetJumpOffset(pc, pc2);
- fprintf(fp, "\n\t%d: %d", i, off);
+ fprintf(fp, "\n\t%d: %td", i, off);
pc2 += jmplen;
}
len = 1 + pc2 - pc;
@@ -262,7 +262,7 @@ js_Disassemble1(JSContext *cx, JSScript *script, jsbyt
pc2 += jmplen;
npairs = GET_ATOM_INDEX(pc2);
pc2 += ATOM_INDEX_LEN;
- fprintf(fp, " offset %d npairs %u", off, (uintN) npairs);
+ fprintf(fp, " offset %td npairs %u", off, (uintN) npairs);
while (npairs) {
atom = GET_ATOM(cx, script, pc2);
pc2 += ATOM_INDEX_LEN;