Skip to content

Commit 9010bd4

Browse files
committed
Rename Mat::clone binding because it is used in Emscripten.
This is in emscripten 3.1.71 and above, cf emscripten-core/emscripten#22734 There was a temptative fix upstream to no avail: emscripten-core/emscripten#23132
1 parent 3fbaad3 commit 9010bd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/js/src/core_bindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ EMSCRIPTEN_BINDINGS(binding_utils)
520520
.function("colRange", select_overload<Mat(int, int)const>(&cv::Mat::colRange))
521521
.function("colRange", select_overload<Mat(const Range&)const>(&cv::Mat::colRange))
522522
.function("step1", select_overload<size_t(int)const>(&cv::Mat::step1))
523-
.function("clone", select_overload<Mat()const>(&cv::Mat::clone))
523+
.function("mat_clone", select_overload<Mat()const>(&cv::Mat::clone))
524524
.function("depth", select_overload<int()const>(&cv::Mat::depth))
525525
.function("col", select_overload<Mat(int)const>(&cv::Mat::col))
526526
.function("dot", select_overload<double(const Mat&, const Mat&)>(&binding_utils::matDot))

0 commit comments

Comments
 (0)