# HG changeset patch # User Nathan Walp # Date 1067458190 0 # Node ID 2ec21bff351b7fe8a16d29539066f017b167d171 # Parent 622359a769bccdadb004f74dec81352a491924fd [gaim-migrate @ 7966] some 64bit goodness committer: Tailor Script diff -r 622359a769bc -r 2ec21bff351b src/gtkimhtml.c --- a/src/gtkimhtml.c Wed Oct 29 18:39:35 2003 +0000 +++ b/src/gtkimhtml.c Wed Oct 29 20:09:50 2003 +0000 @@ -693,7 +693,7 @@ pos = strchr (t->values->str, *x); if (pos) - t = t->children [(int) pos - GPOINTER_TO_INT(t->values->str)]; + t = t->children [GPOINTER_TO_INT(pos) - GPOINTER_TO_INT(t->values->str)]; else break; @@ -714,7 +714,7 @@ GtkSmileyTree *tree; g_return_if_fail (imhtml != NULL); g_return_if_fail (GTK_IS_IMHTML (imhtml)); - + if (sml == NULL) tree = imhtml->default_smilies; else if ((tree = g_hash_table_lookup(imhtml->smiley_data, sml))) { @@ -748,7 +748,7 @@ } if (tree == NULL) return FALSE; - + *len = gtk_smiley_tree_lookup (tree, text); return (*len > 0); } @@ -762,9 +762,9 @@ const gchar *x = text; if (sml == NULL) t = imhtml->default_smilies; - else + else t = g_hash_table_lookup(imhtml->smiley_data, sml); - + if (t == NULL) return sml ? gtk_smiley_tree_image(imhtml, NULL, text) : NULL; @@ -775,10 +775,10 @@ if (!t->values) { return sml ? gtk_smiley_tree_image(imhtml, NULL, text) : NULL; } - + pos = strchr (t->values->str, *x); if (pos) { - t = t->children [(int) pos - GPOINTER_TO_INT(t->values->str)]; + t = t->children [GPOINTER_TO_INT(pos) - GPOINTER_TO_INT(t->values->str)]; } else { return sml ? gtk_smiley_tree_image(imhtml, NULL, text) : NULL; }