Skip to content

Commit f530535

Browse files
wcawijngaardsk0ekk0ek
authored andcommitted
Review fix fallback scanner for parse of TYPE46.
1 parent 84cb282 commit f530535

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/generic/type.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ static really_inline int32_t scan_generic_type(
6262
{
6363
if (scan_int16(data + 4, length - 4, code) == 0)
6464
return -1;
65-
if (*code <= 4)
65+
if (*code <= 258)
6666
*mnemonic = &types[*code].name;
67+
else if (*code == 32769)
68+
*mnemonic = &types[259].name;
6769
else
6870
*mnemonic = &types[0].name;
6971
return 1;

0 commit comments

Comments
 (0)