Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/15/03 16:48
Read: times


 
#45552 - RE: can not write to port(s) (89s8252)
Responding to: ???'s previous message
Hi Erik,

I think this is an excellent case where just because it compiles doesn't mean it's correct.

Be very carefull when using signed numbers where you *really* want to use unsigned. What's happinging here is that you NEVER exit the inner loop...i will count up to its maximum value (0x7FFF) and roll over to 0, never meeting the compare against < 0xFFFF (which is -1).

I wish I could say I haven't made this same mistake. Or that I'd only made this mistake once...

Dennis

List of 33 messages in thread
TopicAuthorDate
can not write to port(s) (89s8252)            01/01/70 00:00      
   RE: can not write to port(s) (89s8252)            01/01/70 00:00      
      RE: can not write to port(s) (89s8252)            01/01/70 00:00      
   RE: can not write to port(s) (89s8252)            01/01/70 00:00      
   RE: can not write to port(s) (89s8252)            01/01/70 00:00      
      RE: can not write to port(s) (89s8252)            01/01/70 00:00      
         RE: can not write to port(s) (89s8252)            01/01/70 00:00      
   RE: can not write to port(s) (89s8252)            01/01/70 00:00      
      RE: can not write to port(s) (89s8252)            01/01/70 00:00      
         RE: can not write to port(s) (89s8252)            01/01/70 00:00      
            RE: can not write to port(s) (89s8252)            01/01/70 00:00      
            RE: can not write to port(s) (89s8252)            01/01/70 00:00      
               RE: can not write to port(s) (89s8252)            01/01/70 00:00      
      RE: can not write to port(s) (89s8252)            01/01/70 00:00      
         RE: can not write to port(s) (89s8252)            01/01/70 00:00      
   RE: can not write to port(s) (89s8252)            01/01/70 00:00      
      RE: can not write to port(s) (89s8252)            01/01/70 00:00      
         RE: can not write to port(s) (89s8252)            01/01/70 00:00      
   RE: can not write to port(s) (89s8252)            01/01/70 00:00      
      RE: can not write to port(s) (89s8252)            01/01/70 00:00      
         RE: can not write to port(s) (89s8252)            01/01/70 00:00      
   RE: can not write to port(s) (89s8252)            01/01/70 00:00      
      RE: can not write to port(s) (89s8252)            01/01/70 00:00      
      RE: can not write to port(s) (89s8252)            01/01/70 00:00      
   RE: can not write to port(s) (89s8252)            01/01/70 00:00      
      RE: can not write to port(s) (89s8252)            01/01/70 00:00      
   New development:s - final message            01/01/70 00:00      
      RE: New development:s - final message            01/01/70 00:00      
         RE: New development:s - final message            01/01/70 00:00      
   RE: just one more comment            01/01/70 00:00      
      RE: just one more comment            01/01/70 00:00      
         RE: just one more comment            01/01/70 00:00      
   RE: can not write to port(s) (89s8252)            01/01/70 00:00      

Back to Subject List