$NetBSD: patch-ab,v 1.3 2007/08/12 03:04:33 wiz Exp $

--- js.c.orig	2006-11-29 19:34:45.000000000 -0500
+++ js.c
@@ -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, 
         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);
     }
 }
