aboutsummaryrefslogtreecommitdiff
path: root/analyzer/utils
diff options
context:
space:
mode:
Diffstat (limited to 'analyzer/utils')
-rw-r--r--analyzer/utils/roman.c2
-rw-r--r--analyzer/utils/roman.h4
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);