diff options
| author | Rose Hogenson <rhogenson@posteo.net> | 2023-02-12 15:37:25 -0800 |
|---|---|---|
| committer | Rose Hogenson <rhogenson@posteo.net> | 2023-02-12 15:37:25 -0800 |
| commit | d940187fd8720e0ab3c00e5a6a7ae8f181c7752d (patch) | |
| tree | 69df829ae1e7fb9454008920b49db08489d939a6 /bytecode/value.c | |
| parent | 5989629a7951e544ad4656672025a99ecd08c7c9 (diff) | |
| download | sml-d940187fd8720e0ab3c00e5a6a7ae8f181c7752d.tar.zst | |
Add lambda functions.
Diffstat (limited to 'bytecode/value.c')
| -rw-r--r-- | bytecode/value.c | 4 |
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; } |
