harec

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

commit 57a023e2f2d252a773cd0e9a24f9aa3057f6ad90
parent e84333ab8c4b5bfaf8d38004f5247e543d599b72
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri, 12 Feb 2021 10:50:08 -0500

types: uintptr needs an explicit cast

Diffstat:
Msrc/types.c | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/types.c b/src/types.c @@ -512,11 +512,6 @@ type_is_assignable(const struct type *to, const struct type *from) return type_is_integer(from) && !type_is_signed(from) && to->size >= from->size; - case TYPE_STORAGE_UINTPTR: - return (type_is_integer(from) - && !type_is_signed(from) - && to->size >= from->size) - || from->storage == TYPE_STORAGE_POINTER; case TYPE_STORAGE_F32: case TYPE_STORAGE_F64: return type_is_float(from); @@ -588,6 +583,7 @@ type_is_assignable(const struct type *to, const struct type *from) case TYPE_STORAGE_STRUCT: case TYPE_STORAGE_TUPLE: case TYPE_STORAGE_UNION: + case TYPE_STORAGE_UINTPTR: return false; }