diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-04 15:34:44 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-04 15:34:44 +0100 |
commit | d32b22f76f9d677780780ec3ab1a497f0ad7a9d5 (patch) | |
tree | b1e6fda619e9d3d6f3d8d42b17dcac60ba0be23d /src/plugins/aspell/weechat-aspell.c | |
parent | e2a19660959d17b2ff615f90259dd543388c362a (diff) | |
download | weechat-d32b22f76f9d677780780ec3ab1a497f0ad7a9d5.zip |
Fix bug with pointer conversions on 64 bits architecture
Diffstat (limited to 'src/plugins/aspell/weechat-aspell.c')
-rw-r--r-- | src/plugins/aspell/weechat-aspell.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/aspell/weechat-aspell.c b/src/plugins/aspell/weechat-aspell.c index 3c8f35bc6..6ad345ab1 100644 --- a/src/plugins/aspell/weechat-aspell.c +++ b/src/plugins/aspell/weechat-aspell.c @@ -713,7 +713,6 @@ weechat_aspell_modifier_cb (void *data, const char *modifier, const char *modifier_data, const char *string) { struct t_gui_buffer *buffer; - unsigned int value; char *result, *ptr_string, *pos_space, *color_normal, *color_error; int length, index_result, length_word, word_ok; int length_color_normal, length_color_error; @@ -725,8 +724,7 @@ weechat_aspell_modifier_cb (void *data, const char *modifier, if (!string || !string[0]) return NULL; - sscanf (modifier_data, "%x", &value); - buffer = (struct t_gui_buffer *)value; + sscanf (modifier_data, "%lx", (long unsigned int *)&buffer); if (!weechat_aspell_spellers) return NULL; |