2010-12-23 13:36:01 +01:00
|
|
|
$NetBSD: patch-ab,v 1.4 2010/12/23 12:36:02 fhajny Exp $
|
2007-08-12 05:04:32 +02:00
|
|
|
|
2010-12-23 13:36:01 +01:00
|
|
|
--- js.c.orig 2008-04-11 22:24:55.000000000 +0000
|
2007-08-12 05:04:32 +02:00
|
|
|
+++ js.c
|
2010-12-23 13:36:01 +01:00
|
|
|
@@ -1233,7 +1233,7 @@ SrcNotes(JSContext *cx, JSScript *script
|
|
|
|
JS_ASSERT(script->code[offset] == JSOP_NOP);
|
|
|
|
}
|
|
|
|
}
|
2007-08-12 05:04:32 +02:00
|
|
|
- fprintf(gOutFile, "%3u: %5u [%4u] %-8s",
|
|
|
|
+ fprintf(gOutFile, "%3tu: %5u [%4u] %-8s",
|
2010-12-23 13:36:01 +01:00
|
|
|
PTRDIFF(sn, notes, jssrcnote), offset, delta, name);
|
|
|
|
switch (type) {
|
|
|
|
case SRC_SETLINE:
|
|
|
|
@@ -1558,7 +1558,7 @@ DumpScope(JSContext *cx, JSObject *obj,
|
2007-08-12 05:04:32 +02:00
|
|
|
DUMP_ATTR(SETTER);
|
|
|
|
#undef DUMP_ATTR
|
|
|
|
|
|
|
|
- fprintf(fp, " slot %lu flags %x shortid %d\n",
|
|
|
|
+ fprintf(fp, " slot %u flags %x shortid %d\n",
|
2010-12-23 13:36:01 +01:00
|
|
|
(unsigned long)sprop->slot, sprop->flags, sprop->shortid);
|
2007-08-12 05:04:32 +02:00
|
|
|
}
|
|
|
|
}
|