Skip to content

Commit

Permalink
Merge pull request #2402 from devitocodes/hotfix-int32-check
Browse files Browse the repository at this point in the history
compiler: Strengthen int32 error check
  • Loading branch information
FabioLuporini authored Jul 10, 2024
2 parents 5cff56d + f58a84b commit 513fe29
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 513fe29

Please sign in to comment.