Skip to content

Commit

Permalink
compiler: Strengthen int32 error check
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed Jul 10, 2024
1 parent 5cff56d commit f58a84b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions devito/types/dense.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@ def _arg_check(self, args, intervals, **kwargs):

if args.options['index-mode'] == 'int32' and \
args.options['linearize'] and \
self.is_regular and \
data.size - 1 >= np.iinfo(np.int32).max:
raise InvalidArgument("`%s`, with its %d elements, is too big for "
"int32 pointer arithmetic. Consider using the "
Expand Down

0 comments on commit f58a84b

Please sign in to comment.