* Corrects a lot of bugs
* Add Tabulation when it's a meta operation child
This commit is contained in:
@@ -59,6 +59,7 @@ enum {CST, ADD, SUB, MUL, DIV, MOD, EXP};
|
||||
|
||||
enum {DOUBLE_POINTED=1, INVALID_CHAR, INVALID_PARENTHESIS, INVALID_OPERATION};
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
#define P(x) x
|
||||
#else
|
||||
@@ -80,7 +81,7 @@ double atof(char* s, int size)
|
||||
|
||||
if (neg > 0)
|
||||
{
|
||||
res += (*s - '0') / neg;
|
||||
res += (double) (*s - '0') / (double)neg;
|
||||
neg *= 10;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user