Skip to content

Commit 513fe29

Browse files
Merge pull request #2402 from devitocodes/hotfix-int32-check
compiler: Strengthen int32 error check
2 parents 5cff56d + f58a84b commit 513fe29

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

devito/types/dense.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,7 @@ def _arg_check(self, args, intervals, **kwargs):
865865

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

0 commit comments

Comments
 (0)