Merge pull request #11271 from gemu2015/sml

fix binary sml 24 bit signed
This commit is contained in:
Theo Arends 2021-03-09 13:26:34 +01:00 committed by GitHub
commit dafffbb104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1077,6 +1077,11 @@ double dval;
#endif
break;
case 3:
// signed 24 bit
value=(int32_t)(uvalue<<8);
value/=256;
break;
case 4:
// signed 32 bit
value=(int32_t)uvalue;