fix(base64): encode: incorrect padding if size % 3 == 2

This commit is contained in:
2024-09-28 13:21:42 +03:00
parent bce26d3a4b
commit 71ff3d4260
4 changed files with 7 additions and 9 deletions

View File

@ -59,8 +59,6 @@ DIRS =\
${OBJDIR}\
${OBJDIR}/hash\
${LIBDIR}\
doc\
cov
build: library tools
@ -91,10 +89,10 @@ ${OBJDIR}/%${-g}-cov.o: ${SRCDIR}/%.cpp ${INCDIR}/${LIB}/%.hpp
${CC} -o $@ -c $< -I${INCDIR} ${-l} ${CFLAGS} --coverage
${BINDIR}/%${-g}-cov: ${TESTDIR}/%.cpp ${patsubst %, ${OBJDIR}/%${-g}-cov.o, ${OBJS}}
${CC} -o $@ $^ -I${INCDIR} ${-l} -lgtest ${CFLAGS} --coverage
${CC} -o $@ $^ -I${INCDIR} ${-l} -lgtest -lgcov ${CFLAGS}
clean:
rm -rf ${DIRS}
rm -rf ${DIRS} doc cov
ifneq (${OBJS},)