[gjs/wip/abderrahim/32-bit-fix] fix build on 32 bit
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/abderrahim/32-bit-fix] fix build on 32 bit
- Date: Fri, 16 Oct 2020 17:17:49 +0000 (UTC)
commit c0eec47f73858e47387ef630dfdbb0a5e95522da
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Fri Oct 16 18:17:03 2020 +0100
fix build on 32 bit
gi/js-value-inl.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gi/js-value-inl.h b/gi/js-value-inl.h
index 03c0bb19..0fbe32eb 100644
--- a/gi/js-value-inl.h
+++ b/gi/js-value-inl.h
@@ -59,7 +59,10 @@ constexpr auto get_strict() {
else if constexpr (type_fits<T, int32_t>())
return int32_t{};
else if constexpr (type_fits<T, uint32_t>())
- return uint32_t{};
+ if constexpr (std::is_same_v<T, GType> && TAG == GI_TYPE_TAG_GTYPE)
+ return GType{};
+ else
+ return uint32_t{};
else if constexpr (type_fits<T, int64_t>())
return int64_t{};
else if constexpr (type_fits<T, uint64_t>())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]