summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorJuergen Schmidt <jsc@openoffice.org>2002-06-18 16:28:00 +0000
committerJuergen Schmidt <jsc@openoffice.org>2002-06-18 16:28:00 +0000
commit5aa27a9a6cde6bfe69b920de68120b4d518a0eb8 (patch)
tree91231fccc7750ab13460924539415f8abb4f7816 /registry
parent94c09d719e34dc978966fc52926e8afa99e61ab0 (diff)
#100439# modify hyper support
Diffstat (limited to 'registry')
-rw-r--r--registry/source/regimpl.cxx24
1 files changed, 18 insertions, 6 deletions
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx
index c3027b4c5f3b..a1fa129e4a1c 100644
--- a/registry/source/regimpl.cxx
+++ b/registry/source/regimpl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: regimpl.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: jsc $ $Date: 2001-11-09 10:51:38 $
+ * last change: $Author: jsc $ $Date: 2002-06-18 17:28:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -283,16 +283,28 @@ static sal_Bool dumpType(RegistryTypeReader& reader, const OString& sIndent)
fprintf(stdout, "%u", constVal.m_value.aULong);
break;
case RT_TYPE_INT64:
- fprintf(stdout, "%d", constVal.m_value.aHyper);
+ {
+ ::rtl::OString tmp( OString::valueOf(constVal.m_value.aHyper) );
+ fprintf(stdout, "%s", tmp.getStr());
+ }
break;
case RT_TYPE_UINT64:
- fprintf(stdout, "%u", constVal.m_value.aUHyper);
+ {
+ OString tmp( OString::valueOf((sal_Int64)constVal.m_value.aUHyper) );
+ fprintf(stdout, "%s", tmp.getStr());
+ }
break;
case RT_TYPE_FLOAT:
- fprintf(stdout, "%f", constVal.m_value.aFloat);
+ {
+ ::rtl::OString tmp( OString::valueOf(constVal.m_value.aFloat) );
+ fprintf(stdout, "%s", tmp.getStr());
+ }
break;
case RT_TYPE_DOUBLE:
- fprintf(stdout, "%f", constVal.m_value.aDouble);
+ {
+ ::rtl::OString tmp( OString::valueOf(constVal.m_value.aDouble) );
+ fprintf(stdout, "%s", tmp.getStr());
+ }
break;
case RT_TYPE_STRING:
fprintf(stdout, "%s", OUStringToOString(constVal.m_value.aString, RTL_TEXTENCODING_UTF8).getStr());