Ken-Patrick Lehrmann 5f73e1cb32 Fix 9546: properly check that the bound is the size (#2475)
Previously, as the check was done on the token and not on the ast,
`i <= v.size()` and `i <= v.size() - 2` would both raise the same
warning.

This patch fixes this, but this mean the check is only done when the
condition if `i <= v.size()`. Any other (more complex) condition is
ignore, and so we have false negative for instance with
 `i <= v.size() + 1`.
2020-01-05 16:24:25 +01:00
..
2019-06-29 07:49:14 +02:00
2018-10-13 18:20:31 +02:00
2019-03-16 09:17:50 +01:00
2019-12-21 11:55:11 +01:00
2019-12-21 11:55:11 +01:00
2019-02-09 07:24:06 +01:00
2019-03-16 09:17:50 +01:00
2019-06-15 13:01:45 +02:00
2020-01-04 18:47:05 +01:00
2019-03-16 09:17:50 +01:00
2019-11-21 18:15:26 +03:00
2020-01-04 18:47:05 +01:00
2019-06-29 07:49:14 +02:00
2019-03-16 09:17:50 +01:00
2019-04-06 06:54:38 +02:00
2019-02-09 07:24:06 +01:00
2019-12-27 19:05:22 +01:00
2019-09-12 10:46:33 +02:00
2019-08-12 12:54:25 +02:00
2020-01-05 15:12:53 +01:00
2019-02-09 07:24:06 +01:00
2019-09-25 15:25:19 +02:00
2019-02-09 07:24:06 +01:00
2018-10-13 18:20:31 +02:00
2018-10-13 18:20:31 +02:00
2019-09-01 11:49:43 +02:00
2019-12-21 11:23:01 +01:00
2019-10-30 18:19:45 +01:00
2019-09-25 15:25:19 +02:00
2019-12-21 11:49:01 +01:00