mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-14 15:36:34 +00:00
Resolve warning: implicit conversion changes signedness: 'unsigned int' to 'int' by
making the conversion explicit. The signedness conversion is necessary and expected.
This commit is contained in:
parent
dadb754e56
commit
fff86c8050
@ -313,7 +313,7 @@ LispPTR N_OP_makenumber(LispPTR tosm1, LispPTR tos) {
|
||||
|
||||
if (((tosm1 & 0xFFFF0000) != S_POSITIVE) || ((tos & 0xFFFF0000) != S_POSITIVE)) ERROR_EXIT(tos);
|
||||
/* UB: left shift of 49152 by 16 places cannot be represented in type 'int' */
|
||||
result = ((tosm1 & 0xffff) << 16) | (tos & 0xffff);
|
||||
result = (int)(((tosm1 & 0xffff) << 16) | (tos & 0xffff));
|
||||
N_ARITH_SWITCH(result);
|
||||
} /* end OP_makenumber */
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user