Sfoglia il codice sorgente

fix unaligned memory access.

Kim Kulling 7 anni fa
parent
commit
59dcfefeb2
2 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1 1
      contrib/zip/src/miniz.h
  2. 0 2
      contrib/zip/src/zip.c

+ 1 - 1
contrib/zip/src/miniz.h

@@ -212,7 +212,7 @@
 
 #if MINIZ_X86_OR_X64_CPU
 // Set MINIZ_USE_UNALIGNED_LOADS_AND_STORES to 1 on CPU's that permit efficient integer loads and stores from unaligned addresses.
-#define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 1
+#define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 0
 #endif
 
 #if defined(_M_X64) || defined(_WIN64) || defined(__MINGW64__) || defined(_LP64) || defined(__LP64__) || defined(__ia64__) || defined(__x86_64__)

+ 0 - 2
contrib/zip/src/zip.c

@@ -8,8 +8,6 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 0
-
 #include "zip.h"
 #include "miniz.h"