Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.5)
project(matxscript)

SET(CMAKE_LOCAL "${PROJECT_SOURCE_DIR}/cmake")
Expand Down
2 changes: 1 addition & 1 deletion include/matxscript/runtime/container/ft_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ class MATX_DLL FTList : public FTObjectBase {

template <class... Args>
MATXSCRIPT_INLINE_VISIBILITY auto emplace_back(Args&&... args) const {
return MutableImpl().template emplace_back(std::forward<Args>(args)...);
return MutableImpl().emplace_back(std::forward<Args>(args)...);
}

MATXSCRIPT_INLINE_VISIBILITY void reserve(int64_t new_size) const {
Expand Down
4 changes: 2 additions & 2 deletions include/matxscript/runtime/generic/generic_hlo_arith_funcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ struct ArithOps {
List result;
result.reserve((lhs_e - lhs_b) + (rhs_e - rhs_b));
for (auto itr = lhs_b; itr != lhs_e; ++itr) {
result.template append(*itr);
result.append(*itr);
}
for (auto itr = rhs_b; itr != rhs_e; ++itr) {
result.template append(*itr);
result.append(*itr);
}
return result;
}
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/py_commons/pystrtod.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ static String format_float_short(double d,
/* Now that we've done zero padding, add an exponent if needed. */
if (use_exp) {
*p++ = float_strings[OFS_E][0];
exp_len = sprintf(p, "%+.02d", exp);
exp_len = snprintf(p, bufsize - (p - buf), "%+.02d", exp);
p += exp_len;
}
exit:
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/unicodelib/py_unicodedata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ _getucname(UnicodeDataPreviousDBVersion *self, Py_UCS4 code, char* buffer, int b
if (buflen < 28)
/* Worst case: CJK UNIFIED IDEOGRAPH-20000 */
return 0;
sprintf(buffer, "CJK UNIFIED IDEOGRAPH-%X", code);
snprintf(buffer, buflen, "CJK UNIFIED IDEOGRAPH-%X", code);
return 1;
}

Expand Down
2 changes: 1 addition & 1 deletion test/cc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.5)

# include path
INCLUDE_DIRECTORIES(/usr/local/include)
Expand Down