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

gcc compiler issue #26

Closed
milani opened this issue Aug 21, 2013 · 0 comments
Closed

gcc compiler issue #26

milani opened this issue Aug 21, 2013 · 0 comments

Comments

@milani
Copy link
Contributor

milani commented Aug 21, 2013

There is a bug in gcc compiler ( http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51245 ) which is reported as fixed but I still have problem with it using gcc version 4.7.3 building snap.

I guess changing the code can solve the issue:

int n = 1;
// little endian if true
if(*(char *)&n == 1) {...}
@roks roks closed this as completed in 8b65ebd Sep 24, 2013
roks added a commit that referenced this issue Sep 24, 2013
Fix #26, Change in endianness detection due to gcc compiler bug
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