summaryrefslogtreecommitdiff
path: root/include/LibraryException.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/LibraryException.h')
-rw-r--r--include/LibraryException.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/LibraryException.h b/include/LibraryException.h
index e62788d..daf0155 100644
--- a/include/LibraryException.h
+++ b/include/LibraryException.h
@@ -27,7 +27,7 @@ public:
virtual const char *what() const throw() override {
std::string s = " ";
- auto ts = [](int x){ return std::to_string(x); };
+ auto ts = [](size_t x){ return std::to_string(x); };
std::string msg = std::string("Target buffer size is smaller than source: [source size, buffer size]")
+s+ ts(source_size) +s+ ts(target_size);
return msg.c_str();