Skip to content

Commit ff1dea6

Browse files
committed
Fix compat issue
1 parent 8a1bb48 commit ff1dea6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pyfastutil/src/unsafe/ASM.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Created by xia__mc on 2024/12/10.
33
//
44

5-
#include <format>
65
#include "ASM.h"
76
#include "utils/memory/AlignedAllocator.h"
87
#include "utils/memory/FastMemcpy.h"
@@ -275,7 +274,7 @@ static PyObject *ASM_freeFunction([[maybe_unused]] PyObject *__restrict self,
275274
} catch (const std::out_of_range& e) {
276275
PyErr_SetString(
277276
PyExc_ValueError,
278-
std::format("Invalid argument, does this function still exist? ({})", e.what()).c_str());
277+
(std::string("Invalid argument, does this function still exist? (") + e.what() + ")").c_str());
279278
return nullptr;
280279
}
281280

0 commit comments

Comments
 (0)