[issue27097] ceval: Wordcode follow up, explicit unsigned short read

STINNER Victor report at bugs.python.org
Tue May 24 17:38:40 EDT 2016


STINNER Victor added the comment:

> +#define NEXTOPARG()     (oparg = *(unsigned short*)next_instr, opcode = OPOF(oparg), oparg = ARGOF(oparg), next_instr += 2)

I dislike this approach. I would prefer to use the unsigned short* type for next_instr, and put an assertion when next_instr is first assigned.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27097>
_______________________________________


More information about the Python-bugs-list mailing list