1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 18:23:13 +02:00

Fix compilation warning "dereferencing type-punned pointer will break strict-aliasing rules"

This commit is contained in:
Sebastien Helleu
2008-12-10 18:57:43 +01:00
parent 452a06da96
commit 638b86f0b6
2 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -714,6 +714,7 @@ char *
weechat_aspell_modifier_cb (void *data, const char *modifier,
const char *modifier_data, const char *string)
{
long unsigned int value;
struct t_gui_buffer *buffer;
char *result, *ptr_string, *pos_space;
const char *color_normal, *color_error;
@@ -727,7 +728,8 @@ weechat_aspell_modifier_cb (void *data, const char *modifier,
if (!string || !string[0])
return NULL;
sscanf (modifier_data, "%lx", (long unsigned int *)&buffer);
sscanf (modifier_data, "%lx", &value);
buffer = (struct t_gui_buffer *)value;
if (!weechat_aspell_spellers)
return NULL;