[Dune] [#1030] Bounds checking
Dune
flyspray at dune-project.org
Tue Jan 24 19:06:55 CET 2012
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#1030 - Bounds checking
User who did this - Elias Pipping (pipping)
----------
> assert(0 <= i < dimension);
That probably isn't what you meant. The above statement is equivalent to
assert((0 <= i) < dimension);.
In the unsigned case e.g., 0 <= i is always true, so that the above becomes
assert(true < dimension).
What you probably meant is
assert(0 <= i && i < dimension);
or for unsigned types
assert(i < dimension);
----------
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=1030#comment3107
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the Dune
mailing list