From 11dbf2aab3e9a65148a40ac6b5b1124929344c1a Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 26 Apr 2016 18:10:13 +0100 Subject: Fix a bunch of compiler warnings, and turn on warnings. --- include/olm/base64.hh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/olm/base64.hh') diff --git a/include/olm/base64.hh b/include/olm/base64.hh index da4641d..dfdccd0 100644 --- a/include/olm/base64.hh +++ b/include/olm/base64.hh @@ -23,11 +23,9 @@ namespace olm { /** * The number of bytes of unpadded base64 needed to encode a length of input. */ -static std::size_t encode_base64_length( +std::size_t encode_base64_length( std::size_t input_length -) { - return 4 * ((input_length + 2) / 3) + (input_length + 2) % 3 - 2; -} +); /** * Encode the raw input as unpadded base64. -- cgit v1.2.3