Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit ef3d9ef

Browse files
authored
Merge pull request #1828 from UplinkCoder/fixArrayEq
correct mistake which caused idx to be inferrred as int merged-on-behalf-of: Jonathan M Davis <jmdavis@users.noreply.github.com>
2 parents 07e4717 + 4fc2afb commit ef3d9ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/object.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3161,7 +3161,7 @@ bool _ArrayEq(T1, T2)(T1[] a1, T2[] a2)
31613161

31623162
// This is function is used as a compiler intrinsic and explicitly written
31633163
// in a lowered flavor to use as few CTFE instructions as possible.
3164-
auto idx = 0;
3164+
size_t idx = 0;
31653165
auto length = a1.length;
31663166

31673167
for(;idx < length;++idx)

0 commit comments

Comments
 (0)