diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2026-04-06 14:48:54 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2026-04-06 14:48:54 +0100 |
| commit | a1ad0db8a6d829eddf1478cee44ae976bbcd325f (patch) | |
| tree | a6e62232e05e7779034c5f9d1bf743b6f1c198e3 /src/core/moves.h | |
| parent | 0d4fa9ebbfcadfff4baf8fc3cd32a63dcfd7dd43 (diff) | |
| download | nissy-core-c-portability.tar.gz nissy-core-c-portability.zip | |
Fix integer conversions in code, tests and some toolsc-portability
Diffstat (limited to 'src/core/moves.h')
| -rw-r--r-- | src/core/moves.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/moves.h b/src/core/moves.h index c162c1d..9f1f7cc 100644 --- a/src/core/moves.h +++ b/src/core/moves.h | |||
| @@ -623,10 +623,10 @@ move_variations_lastqt( | |||
| 623 | size_t u; | 623 | size_t u; |
| 624 | moves_struct_t ss; | 624 | moves_struct_t ss; |
| 625 | 625 | ||
| 626 | in1 = s->nnormal-1; | 626 | in1 = (uint8_t)(s->nnormal-1); |
| 627 | in2 = s->nnormal-2; | 627 | in2 = (uint8_t)(s->nnormal-2); |
| 628 | ii1 = s->ninverse-1; | 628 | ii1 = (uint8_t)(s->ninverse-1); |
| 629 | ii2 = s->ninverse-2; | 629 | ii2 = (uint8_t)(s->ninverse-2); |
| 630 | 630 | ||
| 631 | n1 = in1 >= 0 ? s->normal[in1] : UINT8_ERROR; | 631 | n1 = in1 >= 0 ? s->normal[in1] : UINT8_ERROR; |
| 632 | n2 = in2 >= 0 ? s->normal[in2] : UINT8_ERROR; | 632 | n2 = in2 >= 0 ? s->normal[in2] : UINT8_ERROR; |
