Skip to content

Commit 1735591

Browse files
authored
fix(fmath.h): typo in convert_type default argument, min() to max() (AcademySoftwareFoundation#5227)
Fix typo in convert_type default argument. Fixes AcademySoftwareFoundation#5223 Signed-off-by: Luna Kim <177369799+luna-y-kim@users.noreply.github.com>
1 parent 716311a commit 1735591

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/include/OpenImageIO/fmath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ inline void convert_type (const S *src, D *dst, size_t n)
992992
template<typename S, typename D>
993993
void convert_type (cspan<S> src, span<D> dst,
994994
D min = std::numeric_limits<D>::min(),
995-
D max = std::numeric_limits<D>::min())
995+
D max = std::numeric_limits<D>::max())
996996
{
997997
OIIO_DASSERT(src.size() == dst.size());
998998
convert_type(src.data(), dst.data(), std::min(src.size(), dst.size()),

0 commit comments

Comments
 (0)