mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Another MSVC6 fix. Grnk.
svn:r6802
This commit is contained in:
parent
2249180b60
commit
08a4114abf
@ -79,7 +79,7 @@
|
|||||||
#if defined(_MSC_VER) && (_MSC_VER < 1300)
|
#if defined(_MSC_VER) && (_MSC_VER < 1300)
|
||||||
/* MSVC versions before 7 apparently don't believe that you can cast uint64_t
|
/* MSVC versions before 7 apparently don't believe that you can cast uint64_t
|
||||||
* to double and really mean it. */
|
* to double and really mean it. */
|
||||||
extern inline double U64_TO_DBL(uint64_t x) {
|
extern INLINE double U64_TO_DBL(uint64_t x) {
|
||||||
int64_t i = (int64_t) x;
|
int64_t i = (int64_t) x;
|
||||||
return (i < 0) ? ((double) INT64_MAX) : (double) i;
|
return (i < 0) ? ((double) INT64_MAX) : (double) i;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user