contained a switch on a long
This commit is contained in:
parent
74a1a176c5
commit
fd1682052d
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue