From f7276083b636d98a16f347fde5916a3fca6855db Mon Sep 17 00:00:00 2001 From: malaterre Date: Wed, 26 Oct 2005 17:06:33 +0000 Subject: [PATCH] BUG: Fix declaration of vars within a switch/case --- src/gdcmDocument.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index 3625d94b..48175294 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.cxx,v $ Language: C++ - Date: $Date: 2005/10/26 15:49:56 $ - Version: $Revision: 1.311 $ + Date: $Date: 2005/10/26 17:06:33 $ + Version: $Revision: 1.312 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -516,6 +516,7 @@ double Document::SwapDouble(double a) case 1234 : break; case 4321 : + { char *beg = (char *)&a; char *end = beg + 7; char t; @@ -526,9 +527,9 @@ double Document::SwapDouble(double a) *end = t; beg++, end--; - } + } + } break; - default : gdcmErrorMacro( "Unset swap code:" << SwapCode ); a = 0.; -- 2.45.1