diff --git a/file-commander-core/file-commander-core.pro b/file-commander-core/file-commander-core.pro index 2190a483..9e83c334 100644 --- a/file-commander-core/file-commander-core.pro +++ b/file-commander-core/file-commander-core.pro @@ -17,7 +17,7 @@ mac*|linux*|freebsd{ LIBS += -L$${DESTDIR} -L$${DESTDIR_NOARCH} -lcpputils -lqtutils -!win*:!contains(QT_ARCH, arm): QMAKE_CXXFLAGS += -msse4.1 +!win*:!contains(QT_ARCH, arm.*): QMAKE_CXXFLAGS += -msse4.1 HEADERS += \ src/cfilesystemobject.h \ diff --git a/file-commander-core/src/filesearchengine/cfilesearchengine.cpp b/file-commander-core/src/filesearchengine/cfilesearchengine.cpp index f6182fce..e9f9f725 100644 --- a/file-commander-core/src/filesearchengine/cfilesearchengine.cpp +++ b/file-commander-core/src/filesearchengine/cfilesearchengine.cpp @@ -70,10 +70,10 @@ inline void replace_null(std::byte* array, size_t size) for (size_t i = 0; i < size; i += 16) { - uint8x16_t data = vld1q_u8(&array[i]); // Load 16 bytes + uint8x16_t data = vld1q_u8(reinterpret_cast(&array[i])); // Load 16 bytes uint8x16_t mask = vceqq_u8(data, old_neon); // Compare with old_value uint8x16_t result = vbslq_u8(mask, new_neon, data); // Select new_value where mask is true, else original value - vst1q_u8(&array[i], result); // Store the result back + vst1q_u8(reinterpret_cast(&array[i]), result); // Store the result back } } #endif