summaryrefslogtreecommitdiffhomepage
path: root/compiler.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-07-14 23:15:11 +0200
committerJo-Philipp Wich <jo@mein.io>2022-07-30 00:41:56 +0200
commit9c9a9ec383608287802bb2639a4ee6b7bbfd6793 (patch)
tree531d3c957ffdc5b91f5afee5a203a7fe64a6982f /compiler.c
parent41114a02a38a65956010bab95c4bff19af7ac1ed (diff)
program: fix en/decoding debuginfo upvalue slots in precompiled bytecode
The sizeof(size_t) might differ from the sizeof(uint32_t) used to serialize compiled bytecode, so extra care is needed to properly encode and decode upvalue slot values which are defined as (size_t)-1 / 2 + n. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'compiler.c')
0 files changed, 0 insertions, 0 deletions