Skip to content

Commit

Permalink
Fix warning: iteration 1073741823 invokes undefined behavior
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Buesch <[email protected]>
  • Loading branch information
mbuesch committed Jul 3, 2019
1 parent 15be643 commit e71b18b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awlsim/core/insnmeas.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class InsnMeas(object): #+cdef
def __init__(self):
self.__perf_counter = time.perf_counter

self.__data = [None] * u32_to_s32(AwlInsnTypes.NR_TYPES + 1) #+suffix-u
self.__data = [None] * u32_to_s16(AwlInsnTypes.NR_TYPES + 1) #+suffix-u
for i in range(AwlInsnTypes.NR_TYPES + 1):
self.__data[i] = InsnMeasData()

Expand Down

0 comments on commit e71b18b

Please sign in to comment.