diff options
| author | Mosder <xmosder12@gmail.com> | 2026-07-26 11:14:17 +0200 |
|---|---|---|
| committer | Mosder <xmosder12@gmail.com> | 2026-07-26 11:14:17 +0200 |
| commit | 69b8bf48614da9501763e232cec752650fe7cf55 (patch) | |
| tree | d6c98409d7e172c2aa3245c49e7cd093049db1ac /analyzer/utils | |
| parent | 3419cad016b3c34d0630456d4390c70063462d91 (diff) | |
refactor: added -Wextra to CFLAGS
Diffstat (limited to 'analyzer/utils')
| -rw-r--r-- | analyzer/utils/roman.c | 2 | ||||
| -rw-r--r-- | analyzer/utils/roman.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/analyzer/utils/roman.c b/analyzer/utils/roman.c index 4fbe5c0..2086edc 100644 --- a/analyzer/utils/roman.c +++ b/analyzer/utils/roman.c @@ -4,7 +4,7 @@ #include "utils/memory.h" -void to_roman(char *buffer, int number) { +void to_roman(char *buffer, unsigned int number) { buffer[0] = '\0'; for (size_t i = 0; i < ARR_LEN(roman_symbols); i++) { for (size_t j = 0; j < number / roman_symbols[i].num; j++) { diff --git a/analyzer/utils/roman.h b/analyzer/utils/roman.h index cebd16e..572f866 100644 --- a/analyzer/utils/roman.h +++ b/analyzer/utils/roman.h @@ -2,7 +2,7 @@ // functions for roman numbers typedef struct { - int num; + unsigned int num; char *symbol; } RomanSymbol; @@ -26,4 +26,4 @@ static const RomanSymbol roman_symbols[] = { // params: // buffer - buffer to save the roman number to // number - arabic number to convert -extern void to_roman(char *buffer, int number); +extern void to_roman(char *buffer, unsigned int number); |
