From f1275bfcc5b2a6b92bad578035942a1c3f3a952a Mon Sep 17 00:00:00 2001 From: Myles Busig Date: Wed, 27 Mar 2024 00:30:45 -0600 Subject: [PATCH] Fix incorrect usage of platform specific function --- src/string.cpp | 2 +- src/string_view.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/string.cpp b/src/string.cpp index d1ba8ae..dfe9a2a 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -567,7 +567,7 @@ bool istring::operator!=(const string_view& rhs) const { } size_t istring::copy(char* dest, size_t count, size_t pos) const { - mtl_hybridcpy(dest, m_str + pos, count); + mtl::memcpy(dest, m_str + pos, count); return count; } diff --git a/src/string_view.cpp b/src/string_view.cpp index 0ddb293..072ff70 100644 --- a/src/string_view.cpp +++ b/src/string_view.cpp @@ -14,7 +14,7 @@ size_t string_view::copy(char* dest, size_t count, size_t pos) const { count = m_size - pos; } - mtl_hybridcpy(dest, m_str + pos, count); + mtl::memcpy(dest, m_str + pos, count); return count; }