diff options
Diffstat (limited to 'src/prog.c')
-rw-r--r-- | src/prog.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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)); } |