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 /test/014_math_sumzerotodigits | |
| 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 'test/014_math_sumzerotodigits')
| -rw-r--r-- | test/014_math_sumzerotodigits/sumzerotodigits.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/014_math_sumzerotodigits/sumzerotodigits.c b/test/014_math_sumzerotodigits/sumzerotodigits.c index 401d157..256ca5a 100644 --- a/test/014_math_sumzerotodigits/sumzerotodigits.c +++ b/test/014_math_sumzerotodigits/sumzerotodigits.c | |||
| @@ -8,9 +8,9 @@ void run(void) { | |||
| 8 | uint64_t d; | 8 | uint64_t d; |
| 9 | 9 | ||
| 10 | fgets(str, STRLENMAX, stdin); | 10 | fgets(str, STRLENMAX, stdin); |
| 11 | n = atoi(str); | 11 | n = (uint8_t)atoi(str); |
| 12 | fgets(str, STRLENMAX, stdin); | 12 | fgets(str, STRLENMAX, stdin); |
| 13 | b = atoi(str); | 13 | b = (uint8_t)atoi(str); |
| 14 | fgets(str, STRLENMAX, stdin); | 14 | fgets(str, STRLENMAX, stdin); |
| 15 | d = atoll(str); | 15 | d = atoll(str); |
| 16 | 16 | ||
