home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.raspberry-pi      Raspberry Pi computers & related hardwar      26,127 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 24,886 of 26,127   
   Ahem A Rivet's Shot to Richard Kettlewell   
   Re: RP2350 and Pico 2 - things missing   
   29 Aug 24 14:05:19   
   
   From: steveo@eircom.net   
      
   On Thu, 29 Aug 2024 13:43:11 +0100   
   Richard Kettlewell  wrote:   
      
   > Ahem A Rivet's Shot  writes:   
      
   > > There are always the int_t types for when size matters.   
   >   
   > Life is not always that simple and declaring how things ‘should’ be does   
   > not fix a single line of code.   
      
   	Very true - horse, water, drink.   
      
   > One of the public APIs we support largely uses ‘long’ and ‘unsigned   
   > long’ for integral values, which causes occasional issues with our   
   > cross-platform code. For example ‘unsigned long’ has the same size as   
   > ‘size_t’ on Linux, but not on 64-bit Windows.   
      
   	Which is why putting assigning the value of a size_t to an unsigned   
   long or vice-versa is wrong. But hey early C programmers used to store   
   pointers in ints (there's a moan about it in first edition K&R *that*   
   early).   
      
   --   
   Steve O'Hara-Smith   
   Odds and Ends at http://www.sohara.org/   
   For forms of government let fools contest   
   Whate're is best administered is best - Alexander Pope   
      
   --- 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