We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fe20ed commit 11072bcCopy full SHA for 11072bc
CMakeLists.txt
@@ -1,7 +1,7 @@
1
# CMakeList.txt : CMake project for FastNoise2
2
cmake_minimum_required(VERSION 3.7.1)
3
4
-project(FastNoise2 VERSION 0.9.6)
+project(FastNoise2 VERSION 0.9.7)
5
set(CMAKE_CXX_STANDARD 17)
6
7
message("FastNoise2 Arch: ${CMAKE_SYSTEM_PROCESSOR}")
src/FastNoise/Base64.h
@@ -99,9 +99,10 @@ namespace FastNoise
99
};
100
101
size_t in_len = std::strlen( input );
102
- if( in_len % 4 != 0 ) return {};
103
-
104
size_t out_len = in_len / 4 * 3;
+
+ if( out_len == 0 || in_len % 4 != 0 ) return {};
105
106
if( input[in_len - 1] == '=' ) out_len--;
107
if( input[in_len - 2] == '=' ) out_len--;
108
0 commit comments