Subj : Re: RP2350 and Pico 2 - things missing To : Richard Kettlewell From : Ahem A Rivet's Shot Date : Thu Aug 29 2024 17:22:39 On Thu, 29 Aug 2024 16:13:42 +0100 Richard Kettlewell wrote: > No, it’s not necessarily wrong. If the value fits in the destination > type there’s nothing wrong with it. The results are well-defined and do > not change the value. You can look up the rules in the C standard. What is wrong is making assumptions about the relative size of long and size_t - AFAIK the standard makes no guarantees about that. Note that it's only "wrong" if you care about portability - long experience suggests that not caring about portability is a good way to get bitten on the arse. -- 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: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3) .