diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-31 17:08:33 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-31 17:08:33 +0900 |
| commit | fa5d65de6ba63d58e8bd39272ddb11856c226287 (patch) | |
| tree | 09bca58d6a9213b12d2d338a98a5a6d36c4285c6 /src/hmath.cpp | |
| parent | bfe1dd72039c57e300a010209da5e05c19b94ba7 (diff) | |
| download | abakus-fa5d65de6ba63d58e8bd39272ddb11856c226287.tar.gz abakus-fa5d65de6ba63d58e8bd39272ddb11856c226287.zip | |
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/hmath.cpp')
| -rw-r--r-- | src/hmath.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hmath.cpp b/src/hmath.cpp index 26181a2..864533c 100644 --- a/src/hmath.cpp +++ b/src/hmath.cpp @@ -130,13 +130,13 @@ static bc_num h_str2num( const char* str, int scale = HMATH_MAX_PREC ) int digits, strscale; const char *ptr; char *nptr; - char zero_int; + bool zero_int; /* Check for valid number and count digits. */ ptr = str; digits = 0; strscale = 0; - zero_int = FALSE; + zero_int = false; if ( (*ptr == '+') || (*ptr == '-')) ptr++; /* Sign */ while (*ptr == '0') ptr++; /* Skip leading zeros. */ while (isdigit((int)*ptr)) ptr++, digits++; /* digits */ @@ -149,7 +149,7 @@ static bc_num h_str2num( const char* str, int scale = HMATH_MAX_PREC ) strscale = MIN(strscale, scale); if (digits == 0) { - zero_int = TRUE; + zero_int = true; digits = 1; } |
