mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Add comment why off-by-one error is hard to fix
See #83843 Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
parent
6afd320984
commit
2263d94cc3
@ -35,6 +35,8 @@
|
||||
#include "core/io/dir_access.h"
|
||||
#include "core/io/file_access.h"
|
||||
|
||||
// These constants are off by 1, causing the 'z' and '9' characters never to be used.
|
||||
// This cannot be fixed without breaking compatibility; see GH-83843.
|
||||
static constexpr uint32_t char_count = ('z' - 'a');
|
||||
static constexpr uint32_t base = char_count + ('9' - '0');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user