summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
authorJames Johnson <jjohnsonjj1251@gmail.com>2025-10-20 21:09:29 -0400
committerMason Reed <35282038+emesare@users.noreply.github.com>2025-11-17 17:54:57 -0500
commit89e76e22de16e873e676c93713866236035dc7fd (patch)
treeae674602de3294e6a64896389f8f37c75a8e2da3 /python/function.py
parent33d04c64f4dd6577345dac14b564539ca37b3fee (diff)
Fix calculation of mask for constant values
This fixes an error when a constant is being loaded into a flag. The constants associated with a flag value have their size set to zero. That causes the mask for the constant value to be all zeros. Due to that, getting the value of a zero sized constant will always return 0 even if it should be 1. This commit special cases the size of zero to create a mask of 1 which will correctly mask off the lowest byte and return that as the constant.
Diffstat (limited to 'python/function.py')
0 files changed, 0 insertions, 0 deletions