summaryrefslogtreecommitdiff
path: root/parse/type.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-04-28 21:36:09 -0700
committerOri Bernstein <ori@eigenstate.org>2019-04-28 21:36:09 -0700
commit4be03d030c00960d2b27f319057d1a07603c0260 (patch)
treebb416efe4aea300655ae09769ffb1ee7232c13e2 /parse/type.c
parentcbf8e144771b88703180db26d74f1c65e45d84fe (diff)
downloadmc-4be03d030c00960d2b27f319057d1a07603c0260.tar.gz
Fix float conversions in casts.
We were dropping the intness, and didn't registerize the args to comisd.
Diffstat (limited to 'parse/type.c')
-rw-r--r--parse/type.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/parse/type.c b/parse/type.c
index e932935..31a9d35 100644
--- a/parse/type.c
+++ b/parse/type.c
@@ -412,6 +412,13 @@ istysigned(Type *t)
}
int
+istyint(Type *t)
+{
+ return istysigned(t) || istyunsigned(t);
+}
+
+
+int
istyfloat(Type *t)
{
t = tybase(t);