weechat-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-dev] [bug #31531] weechat 0.3.3 on 32-bit machine incorrectly r


From: anonymous
Subject: [Weechat-dev] [bug #31531] weechat 0.3.3 on 32-bit machine incorrectly report filesize >4gb on receiving dcc
Date: Wed, 03 Nov 2010 10:17:25 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:2.0b6) Gecko/20100101 Firefox/4.0b6

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: address@hidden
             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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]