$OpenBSD: patch-src_js_c,v 1.2 2007/04/10 13:03:09 martynas Exp $
--- src/js.c.orig	Thu Nov 30 02:34:45 2006
+++ src/js.c	Mon Apr  9 21:26:10 2007
@@ -900,7 +900,7 @@ SrcNotes(JSContext *cx, JSScript *script)
     for (sn = notes; !SN_IS_TERMINATOR(sn); sn = SN_NEXT(sn)) {
         delta = SN_DELTA(sn);
         offset += delta;
-        fprintf(gOutFile, "%3u: %5u [%4u] %-8s",
+        fprintf(gOutFile, "%3tu: %5u [%4u] %-8s",
                 PTRDIFF(sn, notes, jssrcnote), offset, delta,
                 js_SrcNoteSpec[SN_TYPE(sn)].name);
         type = (JSSrcNoteType) SN_TYPE(sn);
@@ -985,7 +985,7 @@ TryNotes(JSContext *cx, JSScript *script)
         return JS_TRUE;
     fprintf(gOutFile, "\nException table:\nstart\tend\tcatch\n");
     while (tn->start && tn->catchStart) {
-        fprintf(gOutFile, "  %d\t%d\t%d\n",
+        fprintf(gOutFile, "  %td\t%td\t%td\n",
                tn->start, tn->start + tn->length, tn->catchStart);
         tn++;
     }
@@ -1205,7 +1205,7 @@ DumpScope(JSContext *cx, JSObject *obj, FILE *fp)
         DUMP_ATTR(SETTER);
 #undef  DUMP_ATTR
 
-        fprintf(fp, " slot %lu flags %x shortid %d\n",
+        fprintf(fp, " slot %u flags %x shortid %d\n",
                 sprop->slot, sprop->flags, sprop->shortid);
     }
 }
