diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-05-27 12:04:53 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-05-27 12:04:53 +0200 |
| commit | 49b9c4a516f72e03d53277075f4580e2df8f0e63 (patch) | |
| tree | dea68649391d14d63a96e742b450c59681ac4305 /src/cube_routines.h | |
| parent | fde8dfa9df8df1e3d42a9a8840836e33817cd498 (diff) | |
| download | nissy-core-49b9c4a516f72e03d53277075f4580e2df8f0e63.tar.gz nissy-core-49b9c4a516f72e03d53277075f4580e2df8f0e63.zip | |
Some type fixes and some cleanup
Diffstat (limited to 'src/cube_routines.h')
| -rw-r--r-- | src/cube_routines.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cube_routines.h b/src/cube_routines.h index 1585e67..fb19355 100644 --- a/src/cube_routines.h +++ b/src/cube_routines.h | |||
| @@ -422,8 +422,9 @@ _static int | |||
| 422 | writepiece_LST(uint8_t piece, char *buf) | 422 | writepiece_LST(uint8_t piece, char *buf) |
| 423 | { | 423 | { |
| 424 | char digits[3]; | 424 | char digits[3]; |
| 425 | int i, len = 0; | 425 | int i, len; |
| 426 | 426 | ||
| 427 | len = 0; | ||
| 427 | while (piece != 0) { | 428 | while (piece != 0) { |
| 428 | digits[len++] = (piece % 10) + '0'; | 429 | digits[len++] = (piece % 10) + '0'; |
| 429 | piece /= 10; | 430 | piece /= 10; |
| @@ -473,7 +474,8 @@ writecube_H48(cube_t cube, char *buf) | |||
| 473 | _static void | 474 | _static void |
| 474 | writecube_LST(cube_t cube, char *buf) | 475 | writecube_LST(cube_t cube, char *buf) |
| 475 | { | 476 | { |
| 476 | int i, ptr; | 477 | int i; |
| 478 | size_t ptr; | ||
| 477 | uint8_t piece; | 479 | uint8_t piece; |
| 478 | 480 | ||
| 479 | ptr = 0; | 481 | ptr = 0; |
