aboutsummaryrefslogtreecommitdiffstats
path: root/marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/marshal.c b/marshal.c
index 6a61ae53b4..43886c4daa 100644
--- a/marshal.c
+++ b/marshal.c
@@ -277,7 +277,7 @@ static void
w_long(long x, struct dump_arg *arg)
{
char buf[sizeof(long)+1];
- int i, len = 0;
+ int i;
#if SIZEOF_LONG > 4
if (!(RSHIFT(x, 31) == 0 || RSHIFT(x, 31) == -1)) {
@@ -310,10 +310,7 @@ w_long(long x, struct dump_arg *arg)
break;
}
}
- len = i;
- for (i=0;i<=len;i++) {
- w_byte(buf[i], arg);
- }
+ w_nbyte(buf, i+1, arg);
}
#ifdef DBL_MANT_DIG