[gtk+] computedvalues: Fix signage error
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] computedvalues: Fix signage error
- Date: Tue, 17 Apr 2012 07:16:32 +0000 (UTC)
commit 68b7d3e4109a2171568df0fb1a13d65971a5646c
Author: Benjamin Otte <otte redhat com>
Date: Sun Apr 1 03:41:19 2012 +0200
computedvalues: Fix signage error
gtk/gtkcsscomputedvalues.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcsscomputedvalues.c b/gtk/gtkcsscomputedvalues.c
index a3b51d5..608575e 100644
--- a/gtk/gtkcsscomputedvalues.c
+++ b/gtk/gtkcsscomputedvalues.c
@@ -183,7 +183,7 @@ _gtk_css_computed_values_set_value (GtkCssComputedValues *values,
if (values->values == NULL)
values->values = g_ptr_array_new_with_free_func ((GDestroyNotify)_gtk_css_value_unref);
- if (id <= values->values->len)
+ if (id >= values->values->len)
g_ptr_array_set_size (values->values, id + 1);
if (g_ptr_array_index (values->values, id))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]