Declarations must precede statements for C90 compliance.
[pspp-builds.git] / src / data / variable.c
index 56993e461c5d43998105123767037bba1a9be16d..ee6c8747865b734cf0ba0f2eb00bdd543a39040c 100644 (file)
@@ -432,6 +432,8 @@ copy_mangle (char *dst, size_t dst_size,
 int
 width_to_bytes(int width)
 {
+  const int chunks = width / EFFECTIVE_LONG_STRING_LENGTH ;
+  const int remainder = width - (chunks * EFFECTIVE_LONG_STRING_LENGTH) ;
   int bytes, mod8;
 
   assert (width >= 0);
@@ -442,9 +444,6 @@ width_to_bytes(int width)
   if ( width <= MAX_LONG_STRING) 
     return MAX_SHORT_STRING * DIV_RND_UP(width, MAX_SHORT_STRING);
 
-  const int chunks = width / EFFECTIVE_LONG_STRING_LENGTH ;
-
-  const int remainder = width - (chunks * EFFECTIVE_LONG_STRING_LENGTH) ;
 
   bytes =  remainder + (chunks * (MAX_LONG_STRING + 1) );