diff options
Diffstat (limited to 'src/parsing.h')
-rw-r--r-- | src/parsing.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parsing.h b/src/parsing.h index cb6ee8c4b..06797cf54 100644 --- a/src/parsing.h +++ b/src/parsing.h @@ -80,7 +80,7 @@ inline Expression* parseConst(cashew::IString s, Type type, MixedArena& allocato const char *str = s.str; auto ret = allocator.alloc<Const>(); ret->type = type; - if (isTypeFloat(type)) { + if (isFloatType(type)) { if (s == _INFINITY) { switch (type) { case f32: ret->value = Literal(std::numeric_limits<float>::infinity()); break; |