mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-13 08:25:05 +01:00
Corrected type
This commit is contained in:
parent
cf477ee629
commit
8c21071b99
@ -15,7 +15,7 @@ int32_t atoi32_signed(const char* input_string) {
|
|||||||
i = 1;
|
i = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t return_val = 0;
|
int32_t return_val = 0;
|
||||||
|
|
||||||
while (input_string[i] != '\0') {
|
while (input_string[i] != '\0') {
|
||||||
if (input_string[i] >= '0' && input_string[i] <= '9') {
|
if (input_string[i] >= '0' && input_string[i] <= '9') {
|
||||||
@ -39,7 +39,7 @@ uint32_t atoi32_unsigned(const char* input_string) {
|
|||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
uint64_t return_val = 0;
|
uint32_t return_val = 0;
|
||||||
|
|
||||||
while (input_string[i] != '\0') {
|
while (input_string[i] != '\0') {
|
||||||
if (input_string[i] >= '0' && input_string[i] <= '9') {
|
if (input_string[i] >= '0' && input_string[i] <= '9') {
|
||||||
|
Loading…
Reference in New Issue
Block a user