Mercurial > hg > orthanc-stone
diff Framework/dev.h @ 216:c4ea26865975
fix warning, size_t is always > 0
author | am@osimis.io |
---|---|
date | Thu, 07 Jun 2018 10:10:46 +0200 |
parents | 5412adf19980 |
children | 3d523c9a8f0d 192e6e349e69 |
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); }