# HG changeset patch # User Petter T. # Date 1698423554 -7200 # Fri Oct 27 18:19:14 2023 +0200 # Node ID 90f868cc854c0ee94bd87ccc8bb4e395c5ea4b51 # Parent a69eb80179c79b5e96dfc7ed19a3eb1014e3a9d3 Fix printing LOAD_CST with wide number There was a problem printing long functions due to WIDE LOAD_CST. * pt-bytecode-vm.cc: Check for WIDE diff -r a69eb80179c7 -r 90f868cc854c libinterp/parse-tree/pt-bytecode-vm.cc --- a/libinterp/parse-tree/pt-bytecode-vm.cc Fri Oct 27 18:19:05 2023 +0200 +++ b/libinterp/parse-tree/pt-bytecode-vm.cc Fri Oct 27 18:19:14 2023 +0200 @@ -145,9 +145,19 @@ CASE_END () \ #define PCHAR() \ - {p++; \ - CHECK_END (); \ - s += " " + std::to_string (*p);} + {\ + if (wide_opext_active) \ + { \ + wide_opext_active = false; \ + PSHORT() \ + } \ + else \ + { \ + p++; \ + CHECK_END (); \ + s += " " + std::to_string (*p); \ + }\ + } #define PCHAR_AS_CHAR() \ {p++; \