News for hackers. Stuff that matters.
Re:Air traffic system failure caused by computer memory shor... by tomp on Monday May 12, 2014 @04:33AM (#7731677)

  unsigned short int altitude;
Re:Air traffic system failure caused by computer memory shor... by ghshephard on Monday May 12, 2014 @05:05AM (#7731743)
The flight was at 60,000' - You would have to look far and wide for a platform in which "short int" wasn't two bytes.

For example, Here is what the compiler for the 8-bit ATMEL Atmega 328 in an arduino does (on a platform with 32KB for program text and 2KB for RAM.)

  sizeof(bool) == 1
  sizeof(short) == 2
  sizeof(int) == 2
  sizeof(long) == 4
  sizeof(long long) == 8
  sizeof(void *) == 2
Re:Air traffic system failure caused by computer memory shor... by tomp on Monday May 12, 2014 @09:15AM (#7732468)
The flight was at about 60,000 feet , so it could easily have been at slightly more than 216 feet.