Skip to content

Commit 6bd4acc

Browse files
committed
fixup! Fix error in libgccjit12 while creating an array type
1 parent b07b675 commit 6bd4acc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/type_.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl<'gcc, 'tcx> BaseTypeMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
215215

216216
// NOTE: see note above. Some other test uses usize::MAX.
217217
#[cfg(not(feature="master"))]
218-
if len == u64::MAX {
218+
if len >= i32::MAX as u64 {
219219
len = 0;
220220
}
221221

0 commit comments

Comments
 (0)