components/gnome/gjs/patches/01-uint32.patch
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Fri, 10 Feb 2017 10:03:57 -0800
changeset 7661 aff9737ef6ba
parent 6386 3e1cffd89159
permissions -rw-r--r--
25534788 Resync gnome/desktop patches with upstream efforts

Use standard datatype instead of Linux/BSD "bit type".

Submitted upstream: https://bugzilla.gnome.org/show_bug.cgi?id=776193
Accepted upstream for 1.47.4:
https://git.gnome.org/browse/gjs/commit/?id=38c067d62de927466d95fd8a5dbc3fd57a0ceaf1

--- gjs-1.43.3/gjs/coverage.cpp	2014-12-21 09:37:11.000000000 -0800
+++ gjs-1.43.3/gjs/coverage.cpp	2015-06-27 19:39:27.290756286 -0700
@@ -485,13 +485,13 @@
      * we have some profiling data that suggests a good size to
      * preallocate to. */
     GArray *c_side_array = g_array_new(TRUE, TRUE, array_element_size);
-    u_int32_t js_array_len;
+    uint32_t js_array_len;
 
     if (element_clear_func)
         g_array_set_clear_func(c_side_array, element_clear_func);
 
     if (JS_GetArrayLength(context, js_array, &js_array_len)) {
-        u_int32_t i = 0;
+        uint32_t i = 0;
         for (; i < js_array_len; ++i) {
             jsval element;
             if (!JS_GetElement(context, js_array, i, &element)) {