Commit b1ec34d
committed
fix: avoid warnings on Windows
On Wndows, `size_t` is 64-bits, and `int` is 32-bits. That makes
conversions from `size_t` to `int` potentially lossy, and they generate
warnings. In this case an `int` variable was assigned to `size_t` and
then passed to functions consuming `int`. Seems simpler to use `auto`
and avoid these problems altogether.1 parent da2c4a6 commit b1ec34d
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | | - | |
| 508 | + | |
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
| |||
786 | 786 | | |
787 | 787 | | |
788 | 788 | | |
789 | | - | |
| 789 | + | |
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
| |||
0 commit comments