aboutsummaryrefslogtreecommitdiff
path: root/project/src/lib-parser.c
diff options
context:
space:
mode:
authorWiimm <none>2020-07-27 12:52:34 +0200
committerWiimm <none>2020-07-27 12:52:34 +0200
commit9f75cd52d87c670176235302f50161bd6ebc7fc1 (patch)
treeb733f2cbb8c24b5ead0d718f9acf4efb8b192306 /project/src/lib-parser.c
parent88e810624c68f35f1d1adb2f7738bea3318b6fb4 (diff)
r8228: solved most mac warnings
Diffstat (limited to '')
-rw-r--r--project/src/lib-parser.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/project/src/lib-parser.c b/project/src/lib-parser.c
index 094a1ee..6437b2c 100644
--- a/project/src/lib-parser.c
+++ b/project/src/lib-parser.c
@@ -5366,7 +5366,7 @@ TextCommand_t GetTextCommand
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
-enumError ScanTextCommand
+TextCommand_t ScanTextCommand
(
ScanInfo_t * si // valid data
)
@@ -6524,11 +6524,12 @@ void CalcExpr
if ( src2->i >= 0 )
{
// try integer calculation first, double is fall back on overflow
- int n = src2->i, res = 1, err = 0;
+ s64 res = 1;
+ int n = src2->i, err = 0;
while ( n-- > 0 )
{
- int new_res = res * dest->i;
- if ( abs(new_res) <= abs(res) )
+ s64 new_res = res * dest->i;
+ if ( llabs(new_res) <= llabs(res) )
{
err++;
break;