contained a switch on a long

This commit is contained in:
ceriel 1987-03-19 10:08:31 +00:00
parent 74a1a176c5
commit fd1682052d

View file

@ -211,7 +211,10 @@ checksize(sz, bits)
checkscale(val) checkscale(val)
valu_t val; valu_t val;
{ {
switch(val) { int v = val;
if (v != val) v = 0;
switch(v) {
case 1: return 0; case 1: return 0;
case 2: return 1<<9; case 2: return 1<<9;
case 4: return 2<<9; case 4: return 2<<9;