ref: d4bda4fc679941d7bbc0fde1cd6af414273a70b8
parent: 84c995e12e87e8d0ffe2855fee147d86c05e8023
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat May 13 12:08:30 EDT 2023
libsec: add parentesis to squelch gcc warning in drawterm not a bug, just make it easier to keep drawtem code and libsec in sync...
--- a/sys/src/libsec/port/aes.c
+++ b/sys/src/libsec/port/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)