httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44878] New: VC6 cannot always convert uint64 to float
Date Fri, 25 Apr 2008 21:20:03 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44878

           Summary: VC6 cannot always convert uint64 to float
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: Tom.Donovan@acm.org


Change 617890 (change 649114 for 2.2.x) causes problems for some Windows VC6
compilers.

The default VC6 compiler cannot convert unsigned 64-bit int's to float:
 "error C2520: conversion from unsigned __int64 to double not implemented, use
signed __int64"

If the optional Microsoft "Processor Pack" is installed, this conversion works
OK. 

Unfortunately, the Processor Pack is only available up to VC6-SP5, so those
users who have installed VC6-SP6 are out of luck.

Since a signed 64-bit int would allow up to 10^20 bytes, changing the
totalread, totalbread, and totalposted variables to apr_int64_t instead of
apr_uint64_t would allow all VC6 users to continue to compile support/ab.c.

There are no problems with later Microsoft compilers (VC7, VC8, VC9).  This is
really a Microsoft VC6 compiler weakness, not an Apache bug - but since VC6 is
the default compiler for apache.org builds this change would be helpful.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message