From 9539f7dc866c4c0288e2d77eadd9f481d8611436 Mon Sep 17 00:00:00 2001 From: NotUnderi Date: Tue, 11 Feb 2025 11:11:50 +0200 Subject: [PATCH] Fixes issue with compile error error: control reaches end of non-void function --- b64.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/b64.cpp b/b64.cpp index b926cad..bc8d898 100644 --- a/b64.cpp +++ b/b64.cpp @@ -66,5 +66,8 @@ int b64_encode(const unsigned char* aInput, int aInputLen, unsigned char* aOutpu b64_encode(&aInput[i*3], aInputLen % 3, &aOutput[i*4], aOutputLen - (i*4)); } } + + return ((aInputLen+2)/3)*4; + }