Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.sys.apple2    |    Discussion about Apple II micros    |    56,720 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 56,189 of 56,720    |
|    stephenheumann@gmail.com to Tom Thumb    |
|    Re: Why and wmTaskData4 ?    |
|    02 Jun 23 12:50:53    |
      From: stephen...@gmail.com              On Friday, June 2, 2023 at 12:16:00 PM UTC-5, Tom Thumb wrote:              > May I ask though; why go about it this way: if ((myEvent.wmTaskData4 &       0xFFFF8000) == 0) rather than: if(myEvent.wmTaskData4 <= 32767) ?        >        > is there a reason? or just a choice?              That is probably also because of the translation from Pascal. Pascal doesn't       really have unsigned integer types, so a value with the high bit set would be       treated as a negative number. The bit-masking check excludes such numbers.              --        Stephen Heumann              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca