]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix wrong conditions 1234/head
authorCodecat <spansjh@gmail.com>
Sat, 14 Jul 2018 10:34:03 +0000 (12:34 +0200)
committerCodecat <spansjh@gmail.com>
Sat, 14 Jul 2018 10:34:03 +0000 (12:34 +0200)
contrib/premake/zstd.lua

index 0f7fc558b5879da7efccbab28fe94c8c3213201c..df1ace3ee8ea577f61600bb9238ff9a1864f3265 100644 (file)
@@ -9,12 +9,12 @@ function project_zstd(dir, compression, decompression, deprecated, dictbuilder,
 
        if legacy == nil then legacy = 0 end
 
-       if compression then
+       if not compression then
                dictbuilder = false
                deprecated = false
        end
 
-       if decompression then
+       if not decompression then
                legacy = 0
                deprecated = false
        end