summaryrefslogtreecommitdiffstats
path: root/bytecode/value.c
diff options
context:
space:
mode:
Diffstat (limited to 'bytecode/value.c')
-rw-r--r--bytecode/value.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bytecode/value.c b/bytecode/value.c
index 2a15b44..1b18a96 100644
--- a/bytecode/value.c
+++ b/bytecode/value.c
@@ -13,7 +13,7 @@ bool is_int(value v)
int64_t to_int(value v)
{
if (!is_int(v)) {
- panicf("value %lx is not an int!\n", v);
+ panicf("value 0x%lx is not an int!\n", v);
}
return (int64_t) v >> 1;
}
@@ -31,7 +31,7 @@ bool is_pointer(value v)
value *to_pointer(value v)
{
if (!is_pointer(v)) {
- panicf("value %lx is not a pointer!\n", v);
+ panicf("value 0x%lx is not a pointer!\n", v);
}
return (value *) v;
}