* Corrects a lot of bugs

* Add Tabulation when it's a meta operation child
This commit is contained in:
2010-10-14 22:16:22 +02:00
parent f33f6ab85a
commit f2dcfcb356
6 changed files with 94 additions and 12 deletions

View File

@@ -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