Skip to content

Commit

Permalink
fixed a warning with unaligned memory access
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Oct 6, 2013
1 parent 039e076 commit d097f67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/miniz/miniz.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@
#define MINIZ_LITTLE_ENDIAN 1
#endif

#if MINIZ_X86_OR_X64_CPU
//#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
#endif
//#define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 1
//#endif

#if defined(_M_X64) || defined(_WIN64) || defined(__MINGW64__) || defined(_LP64) || defined(__LP64__) || defined(__ia64__) || defined(__x86_64__)
// Set MINIZ_HAS_64BIT_REGISTERS to 1 if operations on 64-bit integers are reasonably fast (and don't involve compiler generated calls to helper functions).
Expand Down

0 comments on commit d097f67

Please sign in to comment.