leaningtech / cheerp-meta

Cheerp - a C/C++ compiler for Web applications - compiles to WebAssembly and JavaScript
https://labs.leaningtech.com/cheerp
Other
1.03k stars 51 forks source link

extend signed bit field error #120

Closed zyz9740 closed 1 year ago

zyz9740 commented 2 years ago

extend_signed_bit_field_error.zip

When extend signed bit field in union, cheerp seem to use the original value directly, without extend the sign bit.

carlopi commented 2 years ago

Thanks for opening the issue, I do reproduce the bug, will keep you updated when it will be solved

alexp-sssup commented 1 year ago

The problem is now fixed in Cheerp master