comparison src/gtkimhtml.c @ 6478:338147ea6896

[gaim-migrate @ 6991] Some compiler warning fixes for 64-bit platforms from Robot101. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 15 Aug 2003 22:16:44 +0000
parents 7e967f2d6721
children adf49a9bb9a0
comparison
equal deleted inserted replaced
6477:a224dc78d10a 6478:338147ea6896
92 t->values = g_string_append_c (t->values, *x); 92 t->values = g_string_append_c (t->values, *x);
93 index = t->values->len - 1; 93 index = t->values->len - 1;
94 t->children = g_realloc (t->children, t->values->len * sizeof (GtkSmileyTree *)); 94 t->children = g_realloc (t->children, t->values->len * sizeof (GtkSmileyTree *));
95 t->children [index] = g_new0 (GtkSmileyTree, 1); 95 t->children [index] = g_new0 (GtkSmileyTree, 1);
96 } else 96 } else
97 index = (int) pos - (int) t->values->str; 97 index = (int) pos - GPOINTER_TO_INT(t->values->str);
98 98
99 t = t->children [index]; 99 t = t->children [index];
100 100
101 x++; 101 x++;
102 } 102 }
598 if (!t->values) 598 if (!t->values)
599 break; 599 break;
600 600
601 pos = strchr (t->values->str, *x); 601 pos = strchr (t->values->str, *x);
602 if (pos) 602 if (pos)
603 t = t->children [(int) pos - (int) t->values->str]; 603 t = t->children [(int) pos - GPOINTER_TO_INT(t->values->str)];
604 else 604 else
605 break; 605 break;
606 606
607 x++; len++; 607 x++; len++;
608 } 608 }
683 return sml ? gtk_smiley_tree_image(imhtml, NULL, text) : NULL; 683 return sml ? gtk_smiley_tree_image(imhtml, NULL, text) : NULL;
684 } 684 }
685 685
686 pos = strchr (t->values->str, *x); 686 pos = strchr (t->values->str, *x);
687 if (pos) { 687 if (pos) {
688 t = t->children [(int) pos - (int) t->values->str]; 688 t = t->children [(int) pos - GPOINTER_TO_INT(t->values->str)];
689 } else { 689 } else {
690 return sml ? gtk_smiley_tree_image(imhtml, NULL, text) : NULL; 690 return sml ? gtk_smiley_tree_image(imhtml, NULL, text) : NULL;
691 } 691 }
692 x++; 692 x++;
693 } 693 }