瀏覽代碼

Fixed error on BASEXX_NOPAD LEN and BUFSIZE macros #21872

Daniel Pinto 7 年之前
父節點
當前提交
e04da2828d
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/common/util_format.h

+ 4 - 4
src/common/util_format.h

@@ -23,11 +23,11 @@
 #define BASE32_BUFSIZE(n) (BASE32_LEN(n) + 1)
 #define BASE16_BUFSIZE(n) (BASE16_LEN(n) + 1)
 
-#define BASE64_NOPAD_LEN(n) (CEIL_DIV((n) * 4, 3)
-#define BASE32_NOPAD_LEN(n) (CEIL_DIV((n) * 8, 5)
+#define BASE64_NOPAD_LEN(n) (CEIL_DIV((n) * 4, 3))
+#define BASE32_NOPAD_LEN(n) (CEIL_DIV((n) * 8, 5))
 
-#define BASE64_NOPAD_BUFSIZE(n) (BASE64_NOPAD_LEN(n) + 1))
-#define BASE32_NOPAD_BUFSIZE(n) (BASE32_NOPAD_LEN(n) + 1))
+#define BASE64_NOPAD_BUFSIZE(n) (BASE64_NOPAD_LEN(n) + 1)
+#define BASE32_NOPAD_BUFSIZE(n) (BASE32_NOPAD_LEN(n) + 1)
 /** @} */
 
 #define BASE64_ENCODE_MULTILINE 1