[gjs] Use uint32_t instead of u_int32_t in coverage.cpp
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] Use uint32_t instead of u_int32_t in coverage.cpp
- Date: Sun, 18 Dec 2016 05:42:09 +0000 (UTC)
commit 38c067d62de927466d95fd8a5dbc3fd57a0ceaf1
Author: Shawn Walker <shawn walker oracle com>
Date: Tue Jun 30 15:06:54 2015 -0700
Use uint32_t instead of u_int32_t in coverage.cpp
Fixes build errors on Solaris by using C99 standard type.
https://bugzilla.gnome.org/show_bug.cgi?id=776193
Signed-off-by: Alan Coopersmith <alan coopersmith oracle com>
gjs/coverage.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gjs/coverage.cpp b/gjs/coverage.cpp
index 4975019..3477a97 100644
--- a/gjs/coverage.cpp
+++ b/gjs/coverage.cpp
@@ -415,14 +415,14 @@ get_array_from_js_value(JSContext *context,
* 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;
JS::RootedObject js_array(context, &value.toObject());
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;
JS::RootedValue element(context);
for (; i < js_array_len; ++i) {
if (!JS_GetElement(context, js_array, i, &element)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]