Damien George a43cfdd274
py/vm: Prevent array bound warning when using -MP_OBJ_ITER_BUF_NSLOTS.
This warning can happen on clang 13.0.1 building mpy-cross:

../py/vm.c:748:25: error: array index -3 refers past the last possible
  element for an array in 64-bit address space containing 64-bit (8-byte)
  elements (max possible 2305843009213693952 elements)
  [-Werror,-Warray-bounds]
                        sp[-MP_OBJ_ITER_BUF_NSLOTS + 1] = MP_OBJ_NULL;
                        ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~

Using pointer access instead of array access works around this warning.

Fixes issue #8467.

Signed-off-by: Damien George <damien@micropython.org>
2022-04-04 09:22:30 -05:00
..
2021-10-26 08:54:18 -05:00
2021-06-18 10:54:19 -05:00
2021-06-18 10:54:19 -05:00
2021-06-18 10:54:19 -05:00
2021-06-18 10:54:19 -05:00
2021-06-18 10:54:19 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-06-18 10:54:19 -05:00
2021-10-15 08:20:54 -05:00
2021-11-22 14:54:44 -08:00
2021-11-22 14:54:44 -08:00
2021-04-19 22:22:44 -07:00
2021-09-14 16:24:37 -07:00
2020-07-06 19:16:25 +01:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-08-07 09:23:35 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 15:11:21 -05:00
2021-10-15 08:20:54 -05:00
2021-04-19 22:22:44 -07:00
2021-04-19 22:22:44 -07:00
2022-01-20 17:37:51 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-08-29 11:36:29 -05:00
2021-10-15 08:20:54 -05:00
2020-07-06 19:16:25 +01:00
2021-11-10 20:23:33 +05:30
2021-10-15 08:20:54 -05:00
2021-06-02 12:10:41 +09:00
2021-05-08 20:17:16 -05:00
2021-05-08 20:17:16 -05:00
2021-04-19 22:22:44 -07:00
2021-06-18 10:54:19 -05:00
2020-07-06 19:16:25 +01:00
2021-06-18 10:54:19 -05:00
2021-04-19 22:22:44 -07:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-04-19 22:22:44 -07:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-08-17 17:41:59 -07:00
2021-08-04 12:10:57 +05:30
2021-04-19 22:22:44 -07:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-10-15 08:20:54 -05:00
2021-06-18 10:54:19 -05:00
2020-07-06 19:16:25 +01:00
2021-04-19 22:22:44 -07:00
2021-10-15 08:20:54 -05:00
2021-08-04 12:10:57 +05:30
2022-03-11 14:03:04 -05:00
2021-10-15 08:20:54 -05:00
2021-08-31 13:38:37 -07:00
2020-07-06 19:16:25 +01:00
2020-07-06 19:16:25 +01:00
2022-01-25 16:28:46 -08:00
2022-01-25 16:28:46 -08:00
2021-11-10 20:23:33 +05:30
2021-10-15 08:20:54 -05:00
2021-11-10 20:23:33 +05:30
2021-10-15 08:20:54 -05:00
2020-07-06 19:16:25 +01:00
2021-10-15 08:20:54 -05:00
2021-04-19 22:22:44 -07:00
2021-06-18 10:54:19 -05:00
2021-05-05 11:00:35 -05:00
2020-07-06 19:16:25 +01:00