$OpenBSD: patch-src_jsopcode_c,v 1.1.1.1 2006/10/01 23:02:12 steven Exp $
--- src/jsopcode.c.orig	Sun Aug 29 20:00:24 2004
+++ src/jsopcode.c	Mon Sep 25 16:40:31 2006
@@ -181,7 +181,7 @@ js_Disassemble1(JSContext *cx, JSScript 
       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:
@@ -216,10 +216,10 @@ js_Disassemble1(JSContext *cx, JSScript 
         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;
@@ -239,7 +239,7 @@ js_Disassemble1(JSContext *cx, JSScript 
         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;
@@ -253,7 +253,7 @@ js_Disassemble1(JSContext *cx, JSScript 
                                     JSSTRING_LENGTH(str));
             if (!cstr)
                 return 0;
-            fprintf(fp, "\n\t%s: %d", cstr, off);
+            fprintf(fp, "\n\t%s: %td", cstr, off);
             JS_free(cx, cstr);
             npairs--;
         }
