Mercurial > hg > orthanc-stone
changeset 216:c4ea26865975
fix warning, size_t is always > 0
author | am@osimis.io |
---|---|
date | Thu, 07 Jun 2018 10:10:46 +0200 |
parents | 07792a582de9 |
children | 1538de8bfe57 4f0f8026700c |
files | Framework/dev.h |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/dev.h Wed Jun 06 13:53:21 2018 +0200 +++ b/Framework/dev.h Thu Jun 07 10:10:46 2018 +0200 @@ -448,8 +448,7 @@ Slice* GetSlice(size_t slice) const { - if (slice < 0 || - slice >= depth_) + if (slice >= depth_) { throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); }