[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Another MSVC6 fix. Grnk.
Update of /home/or/cvsroot/tor/src/common
In directory moria:/tmp/cvs-serv30092/src/common
Modified Files:
compat.h
Log Message:
Another MSVC6 fix. Grnk.
Index: compat.h
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/compat.h,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -p -d -r1.50 -r1.51
--- compat.h 17 Jul 2006 00:39:05 -0000 1.50
+++ compat.h 21 Jul 2006 14:53:23 -0000 1.51
@@ -79,7 +79,7 @@
#if defined(_MSC_VER) && (_MSC_VER < 1300)
/* MSVC versions before 7 apparently don't believe that you can cast uint64_t
* 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;
return (i < 0) ? ((double) INT64_MAX) : (double) i;
}