From: Peter K. <syn...@us...> - 2005-12-27 18:19:34
|
Update of /cvsroot/loki-lib/loki/include/loki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11091/include/loki Modified Files: SafeFormat.h Log Message: fix 64bit pointer problem, and remove a msvc warning Index: SafeFormat.h =================================================================== RCS file: /cvsroot/loki-lib/loki/include/loki/SafeFormat.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- SafeFormat.h 30 Oct 2005 14:03:23 -0000 1.5 +++ SafeFormat.h 27 Dec 2005 18:19:23 -0000 1.6 @@ -152,7 +152,7 @@ ReadLeaders(); const char fmt = *format_; if (fmt == 'p') { - FormatWithCurrentFlags(reinterpret_cast<unsigned long>(s)); + FormatWithCurrentFlags(reinterpret_cast<uintptr_t>(s)); return *this; } if (fmt != 's') { @@ -176,7 +176,7 @@ } PrintfState& operator()(const void *const p) { - return (*this)(reinterpret_cast<unsigned long>(p)); + return (*this)(reinterpret_cast<uintptr_t>(p)); } // read the result @@ -185,6 +185,7 @@ } private: + PrintfState& operator=(const PrintfState&); template <typename T> PrintfState& StoreCountHelper(T *const pi) { if (result_ == -1) return *this; // don't even bother |