diff options
author | Vitaly Chikunov <vt@altlinux.org> | 2021-12-03 12:06:25 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@users.noreply.github.com> | 2021-12-11 19:45:14 +0300 |
commit | 34dbff392d06471bd4d57395ad16b770e505e2a3 (patch) | |
tree | abbaab57e08551c50c7d50ba036176ff1ca186a7 /gost_crypt.c | |
parent | b5613a2844470fd983cc3681633681a02ef6b44e (diff) | |
download | gost-engine-34dbff392d06471bd4d57395ad16b770e505e2a3.zip gost-engine-34dbff392d06471bd4d57395ad16b770e505e2a3.tar.gz gost-engine-34dbff392d06471bd4d57395ad16b770e505e2a3.tar.bz2 |
MSVC: Fix Elvis operator
Error example:
gost_md.c(54,45): error C2059: syntax error: ':'
gost_md.c(67,5): error C2059: syntax error: 'if'
gost_md.c(69,6): error C2143: syntax error: missing '{' before '->'
gost_md.c(69,6): error C2059: syntax error: '->'
gost_md.c(70,5): error C2059: syntax error: 'return'
gost_md.c(71,1): error C2059: syntax error: '}'
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
Diffstat (limited to 'gost_crypt.c')
-rw-r--r-- | gost_crypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gost_crypt.c b/gost_crypt.c index da78e39..8f8e0d3 100644 --- a/gost_crypt.c +++ b/gost_crypt.c @@ -74,7 +74,7 @@ static int magma_cipher_ctl_acpkm_omac(EVP_CIPHER_CTX *ctx, int type, int arg, v * Note: that you cannot template 0 value. */ #define TPL(st,field) ( \ - ((st)->field) ?: TPL_VAL(st,field) \ + ((st)->field) ? ((st)->field) : TPL_VAL(st,field) \ ) #define TPL_VAL(st,field) ( \ |