]> Creatis software - gdcm.git/commitdiff
BUG: Fix declaration of vars within a switch/case
authormalaterre <malaterre>
Wed, 26 Oct 2005 17:06:33 +0000 (17:06 +0000)
committermalaterre <malaterre>
Wed, 26 Oct 2005 17:06:33 +0000 (17:06 +0000)
src/gdcmDocument.cxx

index 3625d94b0fba7bc41292ac0ac3ad06b1446dab1d..481752945178cfb211ee4640383a2eca0aab537b 100644 (file)
@@ -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.;