Skip to content

Commit 0b0829d

Browse files
committed
compiler error
1 parent 8d27d26 commit 0b0829d

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
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__ = 1675
4+
__build__ = 1676
55
__author__ = "@joocer"
6-
__version__ = "0.26.0-beta.1675"
6+
__version__ = "0.26.0-beta.1676"
77

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

opteryx/compiled/structures/memory_pool.pyx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,11 @@ cdef class MemoryPool:
110110
self._print_stats()
111111

112112
cdef void _print_stats(self):
113-
cdef int64_t total_free = 0
114-
cdef int64_t total_used = 0
115-
cdef double fragmentation = 0.0
116-
cdef int64_t free_blocks = 0
113+
cdef int64_t total_free = 0
114+
cdef int64_t total_used = 0
115+
cdef double fragmentation = 0.0
116+
cdef int64_t free_blocks = 0
117+
cdef double denom
117118

118119
for i in range(self.segments.size()):
119120
if self.segments[i].is_free:
@@ -124,7 +125,7 @@ cdef class MemoryPool:
124125

125126
if total_free > 0 and free_blocks > 1:
126127
# Avoid integer division by zero when total_free < 1024.
127-
cdef double denom = total_free / 1024.0
128+
denom = total_free / 1024.0
128129
if denom > 0.0:
129130
fragmentation = (free_blocks - 1) * 100.0 / denom # Simplified fragmentation metric
130131
else:

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.0-beta.1675"
3+
version = "0.26.0-beta.1676"
44
description = "Query your data, where it lives"
55
requires-python = '>=3.11'
66
readme = {file = "README.md", content-type = "text/markdown"}

0 commit comments

Comments
 (0)