aboutsummaryrefslogtreecommitdiff
path: root/src/prog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/prog.c')
-rw-r--r--src/prog.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/prog.c b/src/prog.c
index 4d9724cf..abb9ce8a 100644
--- a/src/prog.c
+++ b/src/prog.c
@@ -1,5 +1,5 @@
/* This file is part of mailfromd.
- Copyright (C) 2006, 2007 Sergey Poznyakoff
+ Copyright (C) 2006, 2007, 2008 Sergey Poznyakoff
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -410,12 +410,12 @@ runtime_stack_trace(eval_environ_t env)
}
if (ploc)
- mu_error("%04d: %s:%lu: %s",
+ mu_error("%04lu: %s:%lu: %s",
(unsigned long) pc,
ploc->file, (unsigned long) ploc->line,
name);
else
- mu_error("%04d: %s",
+ mu_error("%04lu: %s",
(unsigned long) pc,
name);
}
@@ -1087,7 +1087,7 @@ instr_div(eval_environ_t env)
prog_trace(env, "DIV %ld %ld", a, b);
if (b == 0)
env_throw(env, mf_divzero,
- "Division by zero at %08x", env->pc);
+ "Division by zero at %08lx", (unsigned long)env->pc);
push(env, (STKVAL) (a / b));
}

Return to:

Send suggestions and report system problems to the System administrator.