Skip to content

left shift of 3 by 30 places cannot be represented in type 'int' #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/sljit/sljitNativeARM_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -2273,7 +2273,7 @@ SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_mem_update(struct sljit_compiler *
switch (type & 0xff) {
case SLJIT_MOV:
case SLJIT_MOV_P:
inst = STURBI | (MEM_SIZE_SHIFT(WORD_SIZE) << 30) | 0x400;
inst = STURBI | (MEM_SIZE_SHIFT((sljit_u32)WORD_SIZE) << 30) | 0x400;
break;
case SLJIT_MOV_S8:
sign = 1;
Expand All @@ -2296,7 +2296,7 @@ SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_mem_update(struct sljit_compiler *
break;
default:
SLJIT_UNREACHABLE();
inst = STURBI | (MEM_SIZE_SHIFT(WORD_SIZE) << 30) | 0x400;
inst = STURBI | (MEM_SIZE_SHIFT((sljit_u32)WORD_SIZE) << 30) | 0x400;
break;
}

Expand Down