summaryrefslogtreecommitdiff
path: root/core/variant
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2021-07-27 09:00:56 -0300
committerGeorge Marques <george@gmarqu.es>2021-07-27 09:00:56 -0300
commit84c37423fba88655d5b40474c4fcafca39da46bb (patch)
treed8de7d88e91c0d8454149c9a1ebc3e8b29b9fbb8 /core/variant
parent0f7b7bcbce32bca96a0d9fe08a2335cce81fae2a (diff)
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.
Diffstat (limited to 'core/variant')
-rw-r--r--core/variant/method_ptrcall.h2
1 files changed, 1 insertions, 1 deletions
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);