Skip to content

Commit bc555f6

Browse files
Try to fix github CI failure
1 parent 5d3b68c commit bc555f6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/util.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
detect_words = []
1717
with open('include/feature_detect.h', 'r') as f:
1818
for line in f:
19-
m = re.search('check_(\w+)', line)
19+
m = re.search(r'check_(\w+)', line)
2020
if m:
2121
detect_words.append(m.group(1))
2222
for name in spec.structures:
@@ -216,7 +216,7 @@ def getraw(val):
216216

217217
def getsize(raw):
218218
if '[' in raw and not type == 'char':
219-
return re.search('.*\[(.+)\]', raw).group(1)
219+
return re.search(r'.*\[(.+)\]', raw).group(1)
220220
return None
221221

222222
def typetmpname(root):

src/containers.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class memory_pool
147147
/// Create a 4mb size memory pool
148148
memory_pool(unsigned mbs = 4) : pool(mbs * 1024 * 1024) {}
149149

150-
template<typename T>
150+
template<typename T> __attribute__((malloc))
151151
inline T* allocate(uint32_t _count)
152152
{
153153
if (_count == 0) return nullptr;

0 commit comments

Comments
 (0)