Skip to content

Commit cb2ac37

Browse files
committed
SIMD bug
1 parent a502b11 commit cb2ac37

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

opteryx/__version__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# THIS FILE IS AUTOMATICALLY UPDATED DURING THE BUILD PROCESS
22
# DO NOT EDIT THIS FILE DIRECTLY
33

4-
__build__ = 1936
4+
__build__ = 1937
55
__author__ = "@joocer"
6-
__version__ = "0.26.2-beta.1936"
6+
__version__ = "0.26.2-beta.1937"
77

88
# Store the version here so:
99
# 1) we don't load dependencies by storing it in __init__.py

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "opteryx"
3-
version = "0.26.2-beta.1936"
3+
version = "0.26.2-beta.1937"
44
description = "Query your data, where it lives"
55
requires-python = '>=3.11'
66
readme = {file = "README.md", content-type = "text/markdown"}

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,8 @@ def make_draken_extension(module_path, source_file, depends=None, language=None,
592592
],
593593
include_dirs=include_dirs + ["src/cpp"],
594594
language="c++",
595-
extra_compile_args=CPP_COMPILE_FLAGS,
595+
# Ensure this extension is forcibly compiled as C++17
596+
extra_compile_args=CPP_COMPILE_FLAGS + ["-std=c++17"],
596597
depends=["src/cpp/directories.h"],
597598
),
598599
Extension(

src/cpp/disk_io.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int read_all_pread(const char* path, uint8_t* dst, size_t* out_len,
3535
int fd = open(path, O_RDONLY | O_CLOEXEC);
3636
if (fd < 0) return -errno;
3737

38-
struct stat st{};
38+
struct stat st;
3939
if (fstat(fd, &st) != 0) {
4040
int e = -errno;
4141
close(fd);
@@ -92,7 +92,7 @@ int read_all_pread(const char* path, uint8_t* dst, size_t* out_len,
9292
int fd = open(path, O_RDONLY | O_CLOEXEC);
9393
if (fd < 0) return -errno;
9494

95-
struct stat st{};
95+
struct stat st;
9696
if (fstat(fd, &st) != 0) {
9797
int e = -errno;
9898
close(fd);
@@ -172,7 +172,7 @@ int read_all_mmap(const char* path, uint8_t** dst, size_t* out_len) {
172172
int fd = open(path, O_RDONLY | O_CLOEXEC);
173173
if (fd < 0) return -errno;
174174

175-
struct stat st{};
175+
struct stat st;
176176
if (fstat(fd, &st) != 0) {
177177
int e = -errno;
178178
close(fd);

0 commit comments

Comments
 (0)