fix printing pointers

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@450 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2006-01-08 15:41:56 +00:00
parent 32b4c0a8fa
commit b3c54696f8
2 changed files with 13 additions and 11 deletions

View file

@ -142,19 +142,19 @@ namespace Loki
PrintfState& operator()(void* n) {
if (result_ == -1) return *this; // don't even bother
PrintUsing_printf(n,"p");
PrintUsing_snprintf(n,"p");
return *this;
}
PrintfState& operator()(double n) {
if (result_ == -1) return *this; // don't even bother
PrintUsing_printf(n,"eEfgG");
PrintUsing_snprintf(n,"eEfgG");
return *this;
}
PrintfState& operator()(long double n) {
if (result_ == -1) return *this; // don't even bother
PrintUsing_printf(n,"eEfgG");
PrintUsing_snprintf(n,"eEfgG");
return *this;
}
@ -328,7 +328,7 @@ namespace Loki
}
template <class Value>
void PrintUsing_printf(Value n, const char* check_fmt_char) {
void PrintUsing_snprintf(Value n, const char* check_fmt_char) {
const Char *const fmt = format_ - 1;
assert(*fmt == '%');
// enforce format string validity