[gjs/wip/abderrahim/32-bit-fix] fix build on 32 bit




commit 7e8964274cae7f043c26295b203ecb5bb11d35bf
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Fri Oct 16 18:17:03 2020 +0100

    fix build on 32 bit
    
    Build is broken since 7130f9500b17406f22c599af5fbcae06fa92df4d

 gi/js-value-inl.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gi/js-value-inl.h b/gi/js-value-inl.h
index 03c0bb19..eca4accc 100644
--- a/gi/js-value-inl.h
+++ b/gi/js-value-inl.h
@@ -58,9 +58,12 @@ constexpr auto get_strict() {
         return char32_t{};
     else if constexpr (type_fits<T, int32_t>())
         return int32_t{};
-    else if constexpr (type_fits<T, uint32_t>())
-        return uint32_t{};
-    else if constexpr (type_fits<T, int64_t>())
+    else if constexpr (type_fits<T, 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>())
         return uint64_t{};


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]