From 62cfdb532415aefca955dae8efc575ed6d8174f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB=20=D0=97=D0=B8=D0=BC?= =?UTF-8?q?=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2?= Date: Fri, 11 Aug 2023 09:34:06 +0700 Subject: [PATCH] Remove undefined behavior usage --- include/jwt-cpp/base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/jwt-cpp/base.h b/include/jwt-cpp/base.h index 8e6fc311a..1601f853c 100644 --- a/include/jwt-cpp/base.h +++ b/include/jwt-cpp/base.h @@ -82,8 +82,8 @@ namespace jwt { 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '_'}}; return data; } - static const std::initializer_list& fill() { - static std::initializer_list fill{"%3D", "%3d"}; + static std::initializer_list fill() { + std::initializer_list fill{"%3D", "%3d"}; return fill; } };