int is dead, long live long type!
This commit is contained in:
6
ml.h
6
ml.h
@@ -98,7 +98,7 @@ public:
|
||||
MlValue();
|
||||
|
||||
// Constructs an integer
|
||||
MlValue(int i);
|
||||
MlValue(long i);
|
||||
|
||||
// Constructs a floating point value
|
||||
MlValue(double f);
|
||||
@@ -141,7 +141,7 @@ public:
|
||||
bool as_bool() const;
|
||||
|
||||
// Get this item's integer value
|
||||
int as_int() const;
|
||||
long as_int() const;
|
||||
|
||||
// Get this item's floating point value
|
||||
double as_float() const;
|
||||
@@ -224,7 +224,7 @@ private:
|
||||
} type;
|
||||
|
||||
union {
|
||||
int i;
|
||||
long i;
|
||||
double f;
|
||||
Builtin b;
|
||||
} stack_data;
|
||||
|
||||
Reference in New Issue
Block a user