diff options
author | George Lebl <jirka@5z.com> | 2001-08-29 09:30:26 +0800 |
---|---|---|
committer | George Lebl <jirka@src.gnome.org> | 2001-08-29 09:30:26 +0800 |
commit | 87b3e9277fde5e764c2dfdce6bc848afe84ef137 (patch) | |
tree | 8a688cb6f36f3ff266272ad6f1bc848068a25a31 /e-util | |
parent | 5248c1282cdf4eed7193f6ac0827f4a68504400f (diff) | |
download | gsoc2013-evolution-87b3e9277fde5e764c2dfdce6bc848afe84ef137.tar gsoc2013-evolution-87b3e9277fde5e764c2dfdce6bc848afe84ef137.tar.gz gsoc2013-evolution-87b3e9277fde5e764c2dfdce6bc848afe84ef137.tar.bz2 gsoc2013-evolution-87b3e9277fde5e764c2dfdce6bc848afe84ef137.tar.lz gsoc2013-evolution-87b3e9277fde5e764c2dfdce6bc848afe84ef137.tar.xz gsoc2013-evolution-87b3e9277fde5e764c2dfdce6bc848afe84ef137.tar.zst gsoc2013-evolution-87b3e9277fde5e764c2dfdce6bc848afe84ef137.zip |
Patch to fix few 64bit issues
Tue Aug 28 18:29:28 2001 George Lebl <jirka@5z.com>
Patch to fix few 64bit issues
* gal/e-table/e-table-header-item.c (ethi_draw) (ethi_start_drag)
gal/widgets/e-categories.c (e_categories_value_at)
(e_categories_value_to_string):
Use GINT_TO_POINTER and GPOINTER_TO_INT to cast between pointers
and ints to fix 64bit issues connected with that.
* gal/e-table/e-table-sorting-utils.c
(e_table_sorting_utils_tree_check_position)
gal/util/e-sorter-array.c (e_sorter_array_append):
Use size_t for size not ints to fix crashes
* gal/e-text/e-completion-match.c, gal/e-text/e-completion.c:
Include <string.h>
svn path=/trunk/; revision=12507
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-sorter-array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/e-util/e-sorter-array.c b/e-util/e-sorter-array.c index 44cf7b0f67..ecbdb23198 100644 --- a/e-util/e-sorter-array.c +++ b/e-util/e-sorter-array.c @@ -195,7 +195,7 @@ e_sorter_array_append (ESorterArray *esa, int count) esa->sorted = g_renew(int, esa->sorted, esa->rows + count); for (i = 0; i < count; i++) { int value = esa->rows; - int pos; + size_t pos; e_bsearch (&value, esa->sorted, esa->rows, sizeof (int), esort_callback, esa, &pos, NULL); memmove (esa->sorted + pos + 1, esa->sorted + pos, sizeof (int) * (esa->rows - pos)); esa->sorted[pos] = value; |