shithub: drawterm

Download patch

ref: 662540aee7223766e4499778102b48ff77a5a4ec
parent: 75eb8940e8cbf45aead44b9cbd8f5e9601987584
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Jan 6 14:00:29 EST 2023

libsec: avoid parentesis warnings from gcc

--- a/libsec/aes.c
+++ b/libsec/aes.c
@@ -1247,7 +1247,7 @@
 		nkey = AESmaxkey;
 	memmove(s->key, key, nkey);
 	s->keybytes = nkey;
-	s->ekey = s->storage+16 - (s->storage - (uchar*)0 & 15);
+	s->ekey = s->storage+16 - ((s->storage - (uchar*)0) & 15);
 	s->dkey = (uchar*)s->ekey + 16*(AESmaxrounds+1);
 	s->rounds = (*aes_setup)(s->ekey, s->dkey, s->key, nkey);
 	if(ivec != nil)