summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt4
-rw-r--r--rttest.cc2
-rw-r--r--zp/include/zp/mem.d/srh.ii2
3 files changed, 6 insertions, 2 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 60d4a77..8409cc1 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,3 +1,7 @@
+# 0.0.1
+
+* Fix unused parameter and invalid invocation in overload of srh;
+
# 0.0.0
* Rename C++ cp to cpy;
diff --git a/rttest.cc b/rttest.cc
index 6cc3b2a..21819f9 100644
--- a/rttest.cc
+++ b/rttest.cc
@@ -40,7 +40,7 @@ int main() {
::fmt::print("\x1B[38;5;77mequal\x1B[0m\n");
};
- ::fmt::print("zp test\n\nAPI version: {}\nEXT version: {}\n",::zp::ver,::zp::extver);
+ ::fmt::print("zp test {}.{}\n",::zp::ver,::zp::extver);
try {
[&] {
diff --git a/zp/include/zp/mem.d/srh.ii b/zp/include/zp/mem.d/srh.ii
index 5863076..52070a2 100644
--- a/zp/include/zp/mem.d/srh.ii
+++ b/zp/include/zp/mem.d/srh.ii
@@ -5,7 +5,7 @@
*/
template<typename typ> constexpr auto ::zp::srh(typ * buf,typ val,::zp::sz const num) noexcept -> typ * {
- return const_cast<typ *>(::zp::srh(const_cast<typ const *>(buf),val));
+ return const_cast<typ *>(::zp::srh(const_cast<typ const *>(buf),val,num));
}
template<typename typ> constexpr auto ::zp::srh(typ const * buf,typ const val,::zp::sz const num) noexcept -> typ const * {