Sujet : Re: New VSI blog post
De : clubley (at) *nospam* remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Groupes : comp.os.vmsDate : 30. Jul 2024, 13:25:39
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v8am43$11aec$1@dont-email.me>
References : 1 2
User-Agent : slrn/0.9.8.1 (VMS/Multinet)
On 2024-07-29, John Reagan <
johnrreagan@earthlink.net> wrote:
>
Other
than bugs in the compilers and OS, the most common issue I've seen is a
mismatch of 32/64 bit variables. I've seen 20 or so instance of code
that is doing a 64-bit write into a 32-bit variable.
[snip]
It mostly has been in BLISS and C code.
I don't know enough about BLISS to make a judgement about how bad the
code that does this is, but I would be very interested to see the C code
that makes this possible.
Without an obviously incorrect explicit type conversion (which is a serious
bug in the user's C code), I am not seeing how this is possible under C
as the compiler should generate the appropriate size-conversion code
automatically if you assign from a 64-bit variable into a 32-bit variable.
Simon.
-- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFPWalking destinations on a map are further away than they appear.