From e6d70f5696a082d1ff4555b7adf1c614f1b9b727 Mon Sep 17 00:00:00 2001 From: sunhm89 <93200340+sunhm89@users.noreply.github.com> Date: Mon, 22 Nov 2021 16:08:05 +0800 Subject: [PATCH] add type conversion val is uint64 type but *result is uint32 type, so add type conversion when assigning val to *result. --- pgut/pgut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgut/pgut.c b/pgut/pgut.c index 118defa1..794809d1 100644 --- a/pgut/pgut.c +++ b/pgut/pgut.c @@ -410,7 +410,7 @@ parse_uint32(const char *value, uint32 *result) if (errno == ERANGE || val != (uint64) ((uint32) val)) return false; - *result = val; + *result = (uint32) val; return true; }