Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: cast from int16_t to int32_t loses precision #1179

Open
milahu opened this issue Oct 1, 2023 · 0 comments
Open

error: cast from int16_t to int32_t loses precision #1179

milahu opened this issue Oct 1, 2023 · 0 comments

Comments

@milahu
Copy link

milahu commented Oct 1, 2023

retdec produces code like

int16_t* some_int = NULL;

(int32_t) some_int;

which fails to compile

main.cpp: error: cast from ‘int16_t*’ {aka ‘short int*’} to ‘int32_t’ {aka ‘int’} loses precision [-fpermissive]

related:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant