From: Marcel Telka <marcel@telka.sk>
To: illumos-developer <developer@lists.illumos.org>
Subject: Re: [developer] REVIEW: 16850 genunix: array subscript [0, 9] is outside array bounds of 'hrtime_t[10]'
Date: Tue, 22 Oct 2024 10:57:14 +0200 [thread overview]
Message-ID: <Zxdo6lAjqvOCDZxT@telcontar> (raw)
In-Reply-To: <4F388257-FD6F-4A1D-9A95-295310D45D50@me.com>
On Tue, Oct 22, 2024 at 11:46:22AM +0300, Toomas Soome via illumos-developer wrote:
>
>
> > On 22. Oct 2024, at 11:40, Marcel Telka <marcel@telka.sk> wrote:
> >
> > On Tue, Oct 22, 2024 at 11:28:24AM +0300, Toomas Soome via illumos-developer wrote:
> >> Please review: https://code.illumos.org/c/illumos-gate/+/3746
> >
> > What exactly means '[0, 9]' in the error message?
> >
>
> The array size is defined by NMSTATES, which is 10 — that is, states are indexed [0-9], so the compiler is checking the index value 10…
Okay. Apparently my question was not clear enough, so let's rephrase:
Does '[0, 9]' mean: an interval from 0 to 9 inclusive?
If so, then does:
array subscript [0, 9] is outside array bounds of 'hrtime_t[10]'
mean:
when array subscript is 0 to 9 then it is outside array bounds of
'hrtime_t[10]'
?
Isn't the error message non-sense then?
--
+-------------------------------------------+
| Marcel Telka e-mail: marcel@telka.sk |
| homepage: http://telka.sk/ |
+-------------------------------------------+
------------------------------------------
illumos: illumos-developer
Permalink: https://illumos.topicbox.com/groups/developer/T0177fb8f02fbd3c0-M6337dc168c579498be8fbde5
Delivery options: https://illumos.topicbox.com/groups/developer/subscription
prev parent reply other threads:[~2024-10-22 8:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-22 8:28 Toomas Soome via illumos-developer
2024-10-22 8:40 ` Marcel Telka
2024-10-22 8:46 ` Toomas Soome via illumos-developer
2024-10-22 8:57 ` Marcel Telka [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zxdo6lAjqvOCDZxT@telcontar \
--to=marcel@telka.sk \
--cc=developer@lists.illumos.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).