* 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) ( \
static inline void apply_acpkm_magma(struct ossl_gost_cipher_ctx *
ctx, unsigned int *num)
{
- if (!ctx->key_meshing || (*num < ctx->key_meshing))
+ if (!ctx->key_meshing || (*num < (unsigned int)ctx->key_meshing))
return;
acpkm_magma_key_meshing(&ctx->cctx);
*num &= MAGMA_BLOCK_MASK;