X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=nesc.git;a=blobdiff_plain;f=tools%2Fgenpython.pm;h=ef51f5ddaa5b77d8eb449a7d3c85597765f8a2a8;hp=9c54aeaf5cc538dd9ce5f13173dc8a53ce5f9189;hb=7b54393e237ed8f23c0c74f0a6cbc8de26c5bf98;hpb=57d4530c4d6814fa25338a00cc65b95938c723b6 diff --git a/tools/genpython.pm b/tools/genpython.pm index 9c54aea..ef51f5d 100644 --- a/tools/genpython.pm +++ b/tools/genpython.pm @@ -95,10 +95,10 @@ sub gen() { if ($bitlength > 32) { print " s += \"0x%x \" % (self.getElement_$pythonfield(i))\n"; } - elsif (bitlength > 16) { + elsif ($bitlength > 16) { print " s += \"0x%x \" % (self.getElement_$pythonfield(i) & 0xffffffff)\n"; } - elsif (bitlength > 8) { + elsif ($bitlength > 8) { print " s += \"0x%x \" % (self.getElement_$pythonfield(i) & 0xffff)\n"; } else {