summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-02-13 10:09:05 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-02-14 16:53:12 +0100
commit973160bb4853f2913024c7ef4bf9f5e638e93c5a (patch)
treeff4e30592b6d77cb172e5d690127400fe0fe1093 /registry
parentc9d2518656ce0fc5e96bb4bf06c0e78a575c2597 (diff)
Comment clean-up
Change-Id: I7696dde7337531629d29cce7eb3f882cb4bfad0d
Diffstat (limited to 'registry')
-rw-r--r--registry/tools/reg2bin.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/registry/tools/reg2bin.cxx b/registry/tools/reg2bin.cxx
index 3f42f28fb5bc..18976a0f1a58 100644
--- a/registry/tools/reg2bin.cxx
+++ b/registry/tools/reg2bin.cxx
@@ -958,10 +958,9 @@ void write64(osl::File & file, sal_uInt64 value) {
void writeIso60599Binary32(osl::File & file, float value) {
union {
unsigned char buf[4];
- float f;
+ float f; // assuming float is ISO 60599 binary32
} sa;
sa.f = value;
- // assuming float is ISO 60599 binary32
#if defined OSL_BIGENDIAN
std::swap(sa.buf[0], sa.buf[3]);
std::swap(sa.buf[1], sa.buf[2]);
@@ -970,13 +969,11 @@ void writeIso60599Binary32(osl::File & file, float value) {
}
void writeIso60599Binary64(osl::File & file, double value) {
- union
- {
+ union {
unsigned char buf[8];
- float d;
+ float d; // assuming double is ISO 60599 binary64
} sa;
sa.d = value;
- // assuming double is ISO 60599 binary64
#if defined OSL_BIGENDIAN
std::swap(sa.buf[0], sa.buf[7]);
std::swap(sa.buf[1], sa.buf[6]);