Fix constexpr reinterpret_cast: patch user_dictionary.h at build time
This commit is contained in:
parent
efbebfd1d2
commit
13e873414b
2 changed files with 33 additions and 0 deletions
11
patches/0001-fix-constexpr-reinterpret-cast.patch
Normal file
11
patches/0001-fix-constexpr-reinterpret-cast.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- a/dictionary/user_dictionary.h
|
||||
+++ b/dictionary/user_dictionary.h
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
struct StenoUserDictionaryData {
|
||||
StenoUserDictionaryData() = default;
|
||||
- constexpr StenoUserDictionaryData(const uint8_t *mem, size_t size) {
|
||||
+ StenoUserDictionaryData(const uint8_t *mem, size_t size) {
|
||||
assert((size & (size - 1)) == 0);
|
||||
hashTable = (uint32_t *)mem;
|
||||
reverseHashTable = (const uint32_t *)(mem + size / 8);
|
||||
Loading…
Add table
Add a link
Reference in a new issue