justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: Ah, makes sense. Signed negative int typecast to unsigned takes 0xFFFF and adds UINT_MAX+1 until it's within [0, UINT_MAX], making it larger than 4 (ia32) or 8 (x86_64) and the loop never runs. Fuckit cast the sizeof() to signed (int). 4or 8[edited]will fit easily.
Asked by Will (70.173.80.x) on February 21 2014, 7:44am
Reply on February 22 2014, 10:02pm:
    yeah (int)sizeof() takes care of it.

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2024 Justin Frankel. | RSS