Ver Fonte

[Fix] Fix c99 problem

MurphyZhao há 8 anos atrás
pai
commit
a58df21e70
1 ficheiros alterados com 5 adições e 5 exclusões
  1. 5 5
      fastlz.c

+ 5 - 5
fastlz.c

@@ -174,17 +174,17 @@ static FASTLZ_INLINE int FASTLZ_COMPRESSOR(const void* input, int length, void*
   const flzuint8* ip_bound = ip + length - 2;
   const flzuint8* ip_limit = ip + length - 12;
   flzuint8* op = (flzuint8*) output;
+  
+  const flzuint8** hslot;
+  flzuint32 hval;
+
+  flzuint32 copy;
 
   const flzuint8** htab = (const flzuint8**)malloc(sizeof(flzuint8*) * HASH_SIZE);
   if (htab == NULL)
   {
     return -RT_ENOMEM;
   }
-  
-  const flzuint8** hslot;
-  flzuint32 hval;
-
-  flzuint32 copy;
 
   /* sanity check */
   if(FASTLZ_UNEXPECT_CONDITIONAL(length < 4))