ref: d31d6eed9d84008806398170c5c5ae693e7d590d
parent: cabcd03fb7b04d540565d31ea93003deceb16bdc
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri Apr 11 14:22:48 EDT 2025
arith: add "fall through" magic comments to avoid warnings
--- a/src/sl_arith_any.h
+++ b/src/sl_arith_any.h
@@ -43,9 +43,11 @@
case T_U16: x = *(u16int*)a; break;
case T_S32: x = *(s32int*)a; break;
case T_P32: if(forcetype < T_P32) forcetype = T_P32;
+ // fall through
case T_U32: x = *(u32int*)a; break;
case T_S64: x = *(s64int*)a; break;
case T_P64: if(forcetype < T_P64) forcetype = T_P64;
+ // fall through
case T_U64:
u64 = *(u64int*)a;
if(u64 > INT64_MAX){
@@ -124,9 +126,11 @@
case T_U16: x = *(u16int*)a; break;
case T_S32: x = *(s32int*)a; break;
case T_P32: if(forcetype < T_P32) forcetype = T_P32;
+ // fall through
case T_U32: x = *(u32int*)a; break;
case T_S64: x = *(s64int*)a; break;
case T_P64: if(forcetype < T_P64) forcetype = T_P64;
+ // fall through
case T_U64:
uvtomp(*(u64int*)a, m);
MP_OP(Maccum, m, Maccum);