Created
February 3, 2014 18:04
-
-
Save lucyllewy/8789010 to your computer and use it in GitHub Desktop.
this fails in emscripten with the printf reporting that the variable is 0 instead of my expected 4096 (causing issues in bochs compile)
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> | |
#define TEST 32 | |
int main(int argc, char **argv) { | |
unsigned long int test = ((unsigned long int)(1) << TEST) / (1024*1024); | |
printf("%d should be %d", test, 4096); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment