From 84c37423fba88655d5b40474c4fcafca39da46bb Mon Sep 17 00:00:00 2001 From: George Marques Date: Tue, 27 Jul 2021 09:00:56 -0300 Subject: Change Variant bool conversion to uint8_t This ensures more portable conversion since not every path assume bool is 32-bits and there's no loss converting to 8-bits anyway. --- core/variant/method_ptrcall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/variant/method_ptrcall.h') diff --git a/core/variant/method_ptrcall.h b/core/variant/method_ptrcall.h index 7852187b77..8836e257a9 100644 --- a/core/variant/method_ptrcall.h +++ b/core/variant/method_ptrcall.h @@ -105,7 +105,7 @@ struct PtrToArg {}; } \ } -MAKE_PTRARGCONV(bool, uint32_t); +MAKE_PTRARGCONV(bool, uint8_t); // Integer types. MAKE_PTRARGCONV(uint8_t, int64_t); MAKE_PTRARGCONV(int8_t, int64_t); -- cgit v1.2.3