summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-09-18 02:05:13 -0700
committerOri Bernstein <ori@eigenstate.org>2015-09-18 02:06:35 -0700
commitda45fcd5ccafb05f813c989a379dd6920e517c53 (patch)
tree8119203ca06efebb524c0487fdfa2c2c3f8e207d /mi
parent96f7ecd57ed79995544a125e752c9711aeedbcb8 (diff)
downloadmc-da45fcd5ccafb05f813c989a379dd6920e517c53.tar.gz
Remove 'long' type.
It wasn't ever actually used.
Diffstat (limited to 'mi')
-rw-r--r--mi/fold.c6
-rw-r--r--mi/match.c2
2 files changed, 2 insertions, 6 deletions
diff --git a/mi/fold.c b/mi/fold.c
index 3bf960d..2658431 100644
--- a/mi/fold.c
+++ b/mi/fold.c
@@ -73,15 +73,13 @@ static Node *foldcast(Node *n)
case Tybool:
case Tyint8: case Tyint16: case Tyint32: case Tyint64:
case Tyuint8: case Tyuint16: case Tyuint32: case Tyuint64:
- case Tyint: case Tyuint: case Tylong: case Tyulong:
- case Tychar: case Tybyte:
+ case Tyint: case Tyuint: case Tychar: case Tybyte:
case Typtr:
switch (tybase(from)->type) {
case Tybool:
case Tyint8: case Tyint16: case Tyint32: case Tyint64:
case Tyuint8: case Tyuint16: case Tyuint32: case Tyuint64:
- case Tyint: case Tyuint: case Tylong: case Tyulong:
- case Tychar: case Tybyte:
+ case Tyint: case Tyuint: case Tychar: case Tybyte:
case Typtr:
if (exprop(sub) == Olit || tybase(from)->type == tybase(to)->type) {
sub->expr.type = to;
diff --git a/mi/match.c b/mi/match.c
index 969a049..68af507 100644
--- a/mi/match.c
+++ b/mi/match.c
@@ -59,7 +59,6 @@ static size_t nconstructors(Type *t)
case Tyint16: return 0x10000; break;
case Tyint32: return 0x100000000; break;
case Tyint: return 0x100000000; break;
- case Tylong: return ~0ull; break;
case Tyint64: return ~0ull; break;
/* unsigned ints */
@@ -68,7 +67,6 @@ static size_t nconstructors(Type *t)
case Tyuint16: return 0x10000; break;
case Tyuint32: return 0x100000000; break;
case Tyuint: return 0x100000000; break;
- case Tyulong: return ~0ull; break;
case Tyuint64: return ~0ull; break;
/* floats */