util: right parenthesises for base64 macro

So that BASE64_BUFFER_SIZE(3) == 5 instead of 7
pull/7288/head
Philippe Antoine 4 years ago committed by Shivani Bhardwaj
parent 8498999c6a
commit bda9f8abac

@ -33,7 +33,7 @@
* required output bytes are 4 * ceil(input_len / 3) and an additional byte
* for storing the NULL pointer.
* */
#define BASE64_BUFFER_SIZE(x) ((4 * ((x) + 2) / 3) + 1)
#define BASE64_BUFFER_SIZE(x) ((4 * (((x) + 2) / 3)) + 1)
typedef enum {
SC_SHA_1_OK,

Loading…
Cancel
Save