From d372816a3e370916d592d66cb8e10ed0a3fa2fe9 Mon Sep 17 00:00:00 2001 From: Jarrett Johnson Date: Tue, 30 Jan 2024 15:10:00 -0500 Subject: [PATCH] Sanity check std::clamp --- layer0/Map.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layer0/Map.cpp b/layer0/Map.cpp index c74e714f0..e8aac4058 100644 --- a/layer0/Map.cpp +++ b/layer0/Map.cpp @@ -613,9 +613,9 @@ void MapLocus(const MapType * I, const float *v, int *a, int *b, int *c) bt = (int) ((v[1] - I->Min[1]) * invDiv) + MapBorder; ct = (int) ((v[2] - I->Min[2]) * invDiv) + MapBorder; - *a = pymol::clamp(at, I->iMin[0], I->iMax[0]); - *b = pymol::clamp(bt, I->iMin[1], I->iMax[1]); - *c = pymol::clamp(ct, I->iMin[2], I->iMax[2]); + *a = std::clamp(at, I->iMin[0], I->iMax[0]); + *b = std::clamp(bt, I->iMin[1], I->iMax[1]); + *c = std::clamp(ct, I->iMin[2], I->iMax[2]); } /**