# HG changeset patch # User Petter T. # Date 1698423554 -7200 # Node ID fcc5a0b0e5640220f91391d1d70c9bc18affd299 # Parent 2922ecf94062cab423a9097db635ced56a3f210a 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 2922ecf94062 -r fcc5a0b0e564 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++; \