title: Fread returns wrong value when reading unsigned int with large values
body: <p>When I read an unsigned int from a binary file, it only reads the correct value if the value in the file is fairly low - when I try to read a value over 150,000 it gives me something like 9000... It's weird. Smaller numbers work perfectly however, like 50,000...</p>
  
  <pre><code>unsigned int value;
  
  file = fopen(filePath, "rb");
  fseek(file, 0, 0);
  fread(&amp;value, sizeof(unsigned int), 1, file);
  
  printf("Value from file: %i\n", value);
  </code></pre>
  
  <p>The binary file was created on the same computer &amp; operating system that the program runs on... what am I missing? The binary files are created properly and most of them do return the correct value &amp; work fine, only the ones with large numbers don't...</p>