You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/05/19 16:51:29 UTC

[17/18] incubator-mynewt-core git commit: base64; fix define for computing the size of encoded data.

base64; fix define for computing the size of encoded data.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/1bbd2da5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/1bbd2da5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/1bbd2da5

Branch: refs/heads/develop
Commit: 1bbd2da56c0e8a5e4b1a43ec0b5f060908e99a68
Parents: 4b726ce
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu May 19 09:19:46 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu May 19 09:35:45 2016 -0700

----------------------------------------------------------------------
 libs/util/include/util/base64.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/1bbd2da5/libs/util/include/util/base64.h
----------------------------------------------------------------------
diff --git a/libs/util/include/util/base64.h b/libs/util/include/util/base64.h
index c6b63a7..8e0c045 100644
--- a/libs/util/include/util/base64.h
+++ b/libs/util/include/util/base64.h
@@ -27,6 +27,6 @@ int base64_decode(const char *, void *buf);
 int base64_pad(char *, int);
 int base64_decode_len(const char *str);
 
-#define BASE64_ENCODE_SIZE(__size) (((__size) * (4 / 3)) + 4)
+#define BASE64_ENCODE_SIZE(__size) ((((__size) * 4) / 3) + 4)
 
 #endif /* __UTIL_BASE64_H__ */