int is dead, long live long type!

This commit is contained in:
2021-03-17 23:56:02 +01:00
parent 7e561256ef
commit fcb3b4c5c5
6 changed files with 41 additions and 41 deletions

6
ml.h
View File

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