-
-
Save FROGGS/4f1fac6ac4a47d555981 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@debian-mipsel:~/MoarVM# ./test_double | |
2141029028 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
struct MVMP6numBody { | |
/* Float storage slot. */ | |
union { | |
double n64; | |
float n32; | |
} value; | |
}; | |
typedef struct MVMP6numBody MVMP6numBody; | |
int main(int argc, char **argv) { | |
MVMP6numBody body; | |
body.value.n64 = 42.1; | |
printf("%d\n", body.value.n64); | |
return EXIT_SUCCESS; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment