[gjs] arg: Replace gsize with size_t



commit b9e122044a7ccc1e2a3374c680b6ea82066bfa59
Author: Evan Miller <emmiller gmail com>
Date:   Sun Sep 12 15:22:22 2021 -0400

    arg: Replace gsize with size_t
    
    This is causing problems on 32-bit ppc architecture; see
    https://gitlab.gnome.org/GNOME/glib/-/issues/2493

 gi/arg.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gi/arg.cpp b/gi/arg.cpp
index cff40e10..0b8af141 100644
--- a/gi/arg.cpp
+++ b/gi/arg.cpp
@@ -1706,7 +1706,7 @@ bool gjs_value_to_g_argument(JSContext* context, JS::HandleValue value,
 
     case GI_TYPE_TAG_ARRAY: {
         GjsAutoPointer<void> data;
-        gsize length;
+        size_t length;
         GIArrayType array_type = g_type_info_get_array_type(type_info);
 
         /* First, let's handle the case where we're passed an instance


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