URL:
<http://savannah.nongnu.org/bugs/?31531>
Summary: weechat 0.3.3 on 32-bit machine incorrectly report
filesize >4gb on receiving dcc
Project: WeeChat
Submitted by: None
Submitted on: Wed 03 Nov 2010 10:17:24 AM UTC
Category: xfer plugin
Severity: 3 - Normal
Item Group: display
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email: [email protected]
Open/Closed: Open
Discussion Lock: Any
Release: 0.3.3
IRC nick:
_______________________________________________________
Details:
So when i trying to dcc get file larger than 4gb, weechat xfer windows
incorrectly report the filesize as 4gb, while the actual filesize are 6.6gb.
Problem lies on 32-bit machine unsigned long value.
printf("%lun", ULONG_MAX); output 4294967295
printf("%d", sizeof(unsigned long)); output 4.
but with printf("%d", sizeof(unsigned long long)); output 8.
So i guess the workaround are using unsigned long long for 32-bit.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?31531>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
Weechat-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/weechat-dev