Skip to content
Snippets Groups Projects
Select Git revision
  • dualcore
  • ch3/leds
  • wip-bootstrap default
  • ch3/time
  • master
5 results

mpy-tool.py

Blame
    • Damien George's avatar
      814d580a
      tools/mpy-tool.py: Fix calc of opcode size for opcodes with map caching. · 814d580a
      Damien George authored
      Following an equivalent fix to py/bc.c.  The reason the incorrect values
      for the opcode constants were not previously causing a bug is because they
      were never being used: these opcodes always have qstr arguments so the part
      of the code that was comparing them would never be reached.
      
      Thanks to @malinah for finding the problem and providing the initial patch.
      814d580a
      History
      tools/mpy-tool.py: Fix calc of opcode size for opcodes with map caching.
      Damien George authored
      Following an equivalent fix to py/bc.c.  The reason the incorrect values
      for the opcode constants were not previously causing a bug is because they
      were never being used: these opcodes always have qstr arguments so the part
      of the code that was comparing them would never be reached.
      
      Thanks to @malinah for finding the problem and providing the initial patch.