diff --git a/src/encode/base64.c b/src/encode/base64.c
index ebec436882728ec73a5c4f4bb3d8d1573f0d0816..d08a253477bed0e86eaaac84aff95c5c44ba4ac0 100644
--- a/src/encode/base64.c
+++ b/src/encode/base64.c
@@ -65,7 +65,7 @@ int b64_decode(char *target, size_t tlen, const char *source, size_t slen)
 			return(-1);
 		}
 		if(*i=='=')  { /* pad char */
-			if(working&0xFF != 0)
+			if((working&0xFF) != 0)
 				return(-1);
 			break;
 		}