diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-12-07 11:29:12 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-12-07 11:29:12 +0100 |
commit | 0ba05cc008086309a96d4af80f828daff523f0ec (patch) | |
tree | 9a8f4b25c76fadc2b577d829bc02db5d6f60aafb | |
parent | 018ea768af316ffbb4993ef0f703b97bfc4e44fa (diff) | |
download | weechat-0ba05cc008086309a96d4af80f828daff523f0ec.zip |
relay: fix constant overflow (on 32-bit systems) in "test" command of weechat protocol
-rw-r--r-- | src/plugins/relay/weechat/relay-weechat-protocol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/relay/weechat/relay-weechat-protocol.c b/src/plugins/relay/weechat/relay-weechat-protocol.c index a0bf98231..56902de0b 100644 --- a/src/plugins/relay/weechat/relay-weechat-protocol.c +++ b/src/plugins/relay/weechat/relay-weechat-protocol.c @@ -264,9 +264,9 @@ RELAY_WEECHAT_PROTOCOL_CALLBACK(test) relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_CHAR); relay_weechat_msg_add_char (msg, 'A'); relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_INT); - relay_weechat_msg_add_int (msg, 123456789); + relay_weechat_msg_add_int (msg, 123456); relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_LONG); - relay_weechat_msg_add_long (msg, 123456789012345L); + relay_weechat_msg_add_long (msg, 1234567890L); relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_STRING); relay_weechat_msg_add_string (msg, "a string"); relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_STRING); |