From 8c21071b9939baaa1df24c32ddd79cd69a00f280 Mon Sep 17 00:00:00 2001 From: Kreeblah Date: Sun, 7 Feb 2021 23:07:02 -0800 Subject: [PATCH] Corrected type --- Cart_Reader/atoi32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cart_Reader/atoi32.cpp b/Cart_Reader/atoi32.cpp index b146ac7..8bed615 100644 --- a/Cart_Reader/atoi32.cpp +++ b/Cart_Reader/atoi32.cpp @@ -15,7 +15,7 @@ int32_t atoi32_signed(const char* input_string) { i = 1; } - int64_t return_val = 0; + int32_t return_val = 0; while (input_string[i] != '\0') { if (input_string[i] >= '0' && input_string[i] <= '9') { @@ -39,7 +39,7 @@ uint32_t atoi32_unsigned(const char* input_string) { int i = 0; - uint64_t return_val = 0; + uint32_t return_val = 0; while (input_string[i] != '\0') { if (input_string[i] >= '0' && input_string[i] <= '9') {