fix 64bit pointer problem, and remove a msvc warning
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@385 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
4bdb1d4532
commit
30dadd86ed
1 changed files with 3 additions and 2 deletions
|
@ -152,7 +152,7 @@ struct PrintfState {
|
|||
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 @@ struct PrintfState {
|
|||
}
|
||||
|
||||
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 @@ struct PrintfState {
|
|||
}
|
||||
|
||||
private:
|
||||
PrintfState& operator=(const PrintfState&);
|
||||
template <typename T>
|
||||
PrintfState& StoreCountHelper(T *const pi) {
|
||||
if (result_ == -1) return *this; // don't even bother
|
||||
|
|
Loading…
Add table
Reference in a new issue