# HG changeset patch # User Petter # Date 1696688642 -7200 # Sat Oct 07 16:24:02 2023 +0200 # Node ID 790b817066262715d9e91438b193577a58f12bba # Parent db3ebe87cda40a2f2fa687d5b8c6330325226f5d VM Fix benign build warning about integer literal cut off 8 bytes to big for size_t on 32bit systems for the magic number stack padding used to notice over/underflows. Also change 0x5000 to 0x1234 to make it less zero. * pt-bytecode-vm.h: #if guard define of constant diff -r db3ebe87cda4 -r 790b81706626 libinterp/parse-tree/pt-bytecode-vm.h --- a/libinterp/parse-tree/pt-bytecode-vm.h Sat Oct 07 02:03:09 2023 +0200 +++ b/libinterp/parse-tree/pt-bytecode-vm.h Sat Oct 07 16:24:02 2023 +0200 @@ -456,7 +456,12 @@ static constexpr size_t stack_size = 2048 * 8; static constexpr size_t stack_pad = 32; - static constexpr size_t stack_magic_int = 0xBABEBEEFCAFE5000; + +#if SIZE_MAX == 0xFFFFFFFF + static constexpr size_t stack_magic_int = 0xBABEBEEF; // 32bit systems +#else + static constexpr size_t stack_magic_int = 0xBABEBEEFCAFE1234; +#endif static constexpr size_t stack_min_for_new_call = 1024; vm (tree_evaluator *tw, bytecode &initial_bytecode);