harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 96e258608fa12e245a343059bfff8818bec40850
parent a35d59d84bd01618230ab42d70a912b78705eda5
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 18 Jan 2021 13:25:53 -0500

types: fix _is_integer and _is_numeric

Diffstat:
Msrc/types.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/types.c b/src/types.c @@ -147,7 +147,7 @@ type_is_integer(const struct type *type) case TYPE_STORAGE_UINTPTR: return true; case TYPE_STORAGE_ALIAS: - return type_is_numeric(type_dealias(type)); + return type_is_integer(type_dealias(type)); } assert(0); // Unreachable } @@ -187,7 +187,7 @@ type_is_numeric(const struct type *type) case TYPE_STORAGE_UINTPTR: return true; case TYPE_STORAGE_ALIAS: - return type_is_integer(type_dealias(type)); + return type_is_numeric(type_dealias(type)); } assert(0); // Unreachable }