diff options
author | Aleksandr Kukuev <askukuev@avito.ru> | 2020-05-11 23:32:02 +0300 |
---|---|---|
committer | Aleksandr Kukuev <askukuev@avito.ru> | 2020-05-11 23:32:02 +0300 |
commit | 7a75b045bde89e77e3573f91821d0314251aac1d (patch) | |
tree | 231495e582fa11464fa5fa64a0972176b90959b7 /lib/lz4.c | |
parent | f39b79fb02962a1cd880bbdecb6dffba4f754a11 (diff) | |
download | lz4-7a75b045bde89e77e3573f91821d0314251aac1d.tar.gz lz4-7a75b045bde89e77e3573f91821d0314251aac1d.tar.bz2 lz4-7a75b045bde89e77e3573f91821d0314251aac1d.zip |
Reducing stack usage in _t_alignment checks
Diffstat (limited to 'lib/lz4.c')
-rw-r--r-- | lib/lz4.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1349,8 +1349,8 @@ LZ4_stream_t* LZ4_createStream(void) while actually aligning LZ4_stream_t on 4 bytes. */ static size_t LZ4_stream_t_alignment(void) { - struct { char c; LZ4_stream_t t; } t_a; - return sizeof(t_a) - sizeof(t_a.t); + typedef struct { char c; LZ4_stream_t t; } t_a; + return sizeof(t_a) - sizeof(LZ4_stream_t); } #endif |