Re: RP2350 and Pico 2 - things missing

Liste des GroupesRevenir à cs raspberry-pi 
Sujet : Re: RP2350 and Pico 2 - things missing
De : invalid (at) *nospam* invalid.invalid (Richard Kettlewell)
Groupes : comp.sys.raspberry-pi
Date : 29. Aug 2024, 16:13:42
Autres entêtes
Organisation : terraraq NNTP server
Message-ID : <wwvwmjzs6op.fsf@LkoBDZeT.terraraq.uk>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Ahem A Rivet's Shot <steveo@eircom.net> writes:
Richard Kettlewell <invalid@invalid.invalid> wrote:
Ahem A Rivet's Shot <steveo@eircom.net> writes:
There are always the int<n>_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.

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.

The common case (for users of this API) is passing the size of a
relatively small object, of fixed size. There is no practical issue
there. The less common case is where the value is unknown at compile
time, meaning an extra check and an explicit conversion are needed. It’s
not remotely difficult to deal with, it’s just an annoyance (as I
previously wrote).

--
https://www.greenend.org.uk/rjk/

Date Sujet#  Auteur
15 Aug 24 * RP2350 and Pico 2 - things missing77James Harris
15 Aug 24 +* Re: RP2350 and Pico 2 - things missing3Theo
18 Aug 24 i`* Re: RP2350 and Pico 2 - things missing2James Harris
18 Aug 24 i `- Re: RP2350 and Pico 2 - things missing1Michael Schwingen
17 Aug 24 `* Re: RP2350 and Pico 2 - things missing73Lawrence D'Oliveiro
21 Aug 24  `* Re: RP2350 and Pico 2 - things missing72Brian Gregory
22 Aug 24   `* Re: RP2350 and Pico 2 - things missing71The Natural Philosopher
22 Aug 24    `* Re: RP2350 and Pico 2 - things missing70Single Stage to Orbit
22 Aug 24     +- Re: RP2350 and Pico 2 - things missing1The Natural Philosopher
22 Aug 24     `* Re: RP2350 and Pico 2 - things missing68Ahem A Rivet's Shot
22 Aug 24      +* Re: RP2350 and Pico 2 - things missing4Single Stage to Orbit
22 Aug 24      i`* Re: RP2350 and Pico 2 - things missing3Single Stage to Orbit
22 Aug 24      i `* Re: RP2350 and Pico 2 - things missing2Chris Townley
22 Aug 24      i  `- Re: RP2350 and Pico 2 - things missing1Single Stage to Orbit
23 Aug 24      +- Re: RP2350 and Pico 2 - things missing1Single Stage to Orbit
23 Aug 24      `* Re: RP2350 and Pico 2 - things missing62The Natural Philosopher
23 Aug 24       +- Re: RP2350 and Pico 2 - things missing1mm0fmf
23 Aug 24       `* Re: RP2350 and Pico 2 - things missing60Ahem A Rivet's Shot
23 Aug 24        +* Re: RP2350 and Pico 2 - things missing3The Natural Philosopher
23 Aug 24        i`* Re: RP2350 and Pico 2 - things missing2mm0fmf
23 Aug 24        i `- Re: RP2350 and Pico 2 - things missing1Ahem A Rivet's Shot
23 Aug 24        +* Re: RP2350 and Pico 2 - things missing3Ahem A Rivet's Shot
24 Aug 24        i`* Re: RP2350 and Pico 2 - things missing2mm0fmf
26 Aug 24        i `- Re: RP2350 and Pico 2 - things missing1Lawrence D'Oliveiro
24 Aug 24        `* Re: RP2350 and Pico 2 - things missing53Lawrence D'Oliveiro
24 Aug 24         `* Re: RP2350 and Pico 2 - things missing52Ahem A Rivet's Shot
26 Aug 24          `* Re: RP2350 and Pico 2 - things missing51Lawrence D'Oliveiro
26 Aug 24           `* Re: RP2350 and Pico 2 - things missing50mm0fmf
27 Aug 24            `* Re: RP2350 and Pico 2 - things missing49Lawrence D'Oliveiro
27 Aug 24             `* Re: RP2350 and Pico 2 - things missing48mm0fmf
28 Aug 24              `* Re: RP2350 and Pico 2 - things missing47Lawrence D'Oliveiro
28 Aug 24               `* Re: RP2350 and Pico 2 - things missing46druck
28 Aug 24                +- Re: RP2350 and Pico 2 - things missing1The Natural Philosopher
29 Aug 24                +* Re: RP2350 and Pico 2 - things missing43Richard Kettlewell
29 Aug 24                i+* Re: RP2350 and Pico 2 - things missing29Ahem A Rivet's Shot
29 Aug 24                ii+* Re: RP2350 and Pico 2 - things missing2Pancho
1 Sep 24                iii`- Re: RP2350 and Pico 2 - things missing1Lawrence D'Oliveiro
29 Aug 24                ii+* Re: RP2350 and Pico 2 - things missing8Richard Kettlewell
29 Aug 24                iii+* Re: RP2350 and Pico 2 - things missing4Ahem A Rivet's Shot
29 Aug 24                iiii`* Re: RP2350 and Pico 2 - things missing3Richard Kettlewell
29 Aug 24                iiii `* Re: RP2350 and Pico 2 - things missing2Ahem A Rivet's Shot
29 Aug 24                iiii  `- Re: RP2350 and Pico 2 - things missing1Richard Kettlewell
30 Aug 24                iii`* Re: RP2350 and Pico 2 - things missing3crn
30 Aug 24                iii +- Re: RP2350 and Pico 2 - things missing1Gerhard Hoffmann
2 Sep 24                iii `- Re: RP2350 and Pico 2 - things missing1Lawrence D'Oliveiro
29 Aug 24                ii`* Re: RP2350 and Pico 2 - things missing18John Aldridge
29 Aug 24                ii +* Re: RP2350 and Pico 2 - things missing16Ahem A Rivet's Shot
29 Aug 24                ii i+* Re: RP2350 and Pico 2 - things missing3The Natural Philosopher
29 Aug 24                ii ii`* Re: RP2350 and Pico 2 - things missing2Richard Kettlewell
30 Aug 24                ii ii `- Re: RP2350 and Pico 2 - things missing1The Natural Philosopher
30 Aug 24                ii i`* Re: RP2350 and Pico 2 - things missing12John Aldridge
30 Aug 24                ii i +- Re: RP2350 and Pico 2 - things missing1Ahem A Rivet's Shot
30 Aug 24                ii i `* Re: RP2350 and Pico 2 - things missing10mm0fmf
30 Aug 24                ii i  +* Re: RP2350 and Pico 2 - things missing8The Natural Philosopher
30 Aug 24                ii i  i+* Re: RP2350 and Pico 2 - things missing2Pancho
3 Sep 24                ii i  ii`- Re: RP2350 and Pico 2 - things missing1Lawrence D'Oliveiro
30 Aug 24                ii i  i`* Re: RP2350 and Pico 2 - things missing5mm0fmf
30 Aug 24                ii i  i `* Re: RP2350 and Pico 2 - things missing4The Natural Philosopher
31 Aug 24                ii i  i  +* Re: RP2350 and Pico 2 - things missing2Chris Townley
31 Aug 24                ii i  i  i`- Re: RP2350 and Pico 2 - things missing1The Natural Philosopher
2 Sep 24                ii i  i  `- Re: RP2350 and Pico 2 - things missing1Kerr-Mudd, John
30 Aug 24                ii i  `- Re: RP2350 and Pico 2 - things missing1Gordon Henderson
30 Aug 24                ii `- Re: RP2350 and Pico 2 - things missing1Pancho
29 Aug 24                i`* Re: RP2350 and Pico 2 - things missing13The Natural Philosopher
29 Aug 24                i `* Re: RP2350 and Pico 2 - things missing12druck
1 Sep 24                i  `* Re: RP2350 and Pico 2 - things missing11Lawrence D'Oliveiro
1 Sep 24                i   `* Re: RP2350 and Pico 2 - things missing10mm0fmf
1 Sep 24                i    +* Re: RP2350 and Pico 2 - things missing8Ahem A Rivet's Shot
1 Sep 24                i    i+- Re: RP2350 and Pico 2 - things missing1The Natural Philosopher
1 Sep 24                i    i`* Re: RP2350 and Pico 2 - things missing6mm0fmf
1 Sep 24                i    i `* Re: RP2350 and Pico 2 - things missing5Single Stage to Orbit
2 Sep 24                i    i  `* Re: RP2350 and Pico 2 - things missing4mm0fmf
2 Sep 24                i    i   +- Re: RP2350 and Pico 2 - things missing1Ahem A Rivet's Shot
2 Sep 24                i    i   +- Re: RP2350 and Pico 2 - things missing1Single Stage to Orbit
3 Sep 24                i    i   `- Re: RP2350 and Pico 2 - things missing1Lawrence D'Oliveiro
2 Sep 24                i    `- Re: RP2350 and Pico 2 - things missing1Lawrence D'Oliveiro
1 Sep 24                `- Re: RP2350 and Pico 2 - things missing1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal