summaryrefslogtreecommitdiff
path: root/src/parsing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parsing.h')
-rw-r--r--src/parsing.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parsing.h b/src/parsing.h
index 49051800f..2591c4357 100644
--- a/src/parsing.h
+++ b/src/parsing.h
@@ -82,7 +82,7 @@ parseConst(cashew::IString s, Type type, MixedArena& allocator) {
const char* str = s.str;
auto ret = allocator.alloc<Const>();
ret->type = type;
- if (isFloatType(type)) {
+ if (type.isFloat()) {
if (s == _INFINITY) {
switch (type) {
case f32: