Skip to content
Snippets Groups Projects
Commit 44d4394a authored by marco's avatar marco
Browse files

silence warnings and update assertions

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2234 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 4cc41883
No related branches found
No related tags found
No related merge requests found
...@@ -136,7 +136,7 @@ public: ...@@ -136,7 +136,7 @@ public:
LineSlice& operator=(const fmt::RPadded& str) LineSlice& operator=(const fmt::RPadded& str)
{ {
assert(str.size()==len_); assert(str.size()<=len_);
memcpy(data_, str.data(), str.size()); memcpy(data_, str.data(), str.size());
return *this; return *this;
} }
...@@ -179,7 +179,7 @@ public: ...@@ -179,7 +179,7 @@ public:
LineSlice operator()(int start, int len) LineSlice operator()(int start, int len)
{ {
assert(start>=0 && start+len<len_); assert(start>=0 && start+len<=static_cast<int>(len_));
return LineSlice(data_+start, len); return LineSlice(data_+start, len);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment