Skip to content

Commit f77f375

Browse files
author
netdex
committed
vec2: silence type conversion warnings from implicit pair cast
1 parent e5cb0a8 commit f77f375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

twinhook/util/vec2.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ std::pair<float, float> vec2::willOverlapInterval(float minA, float maxA, float
463463
if (va == vb) {
464464
if (isOverlapInterval(minA, maxA, minB, maxB))
465465
return std::make_pair(-FLT_MAX, FLT_MAX);
466-
return std::make_pair(0, 0);
466+
return std::make_pair(0.f, 0.f);
467467
}
468468

469469
/*
@@ -514,7 +514,7 @@ std::pair<float, float> vec2::intersectInterval(const std::pair<float, float>& a
514514
const std::pair<float, float>& b)
515515
{
516516
if (b.first > a.second || a.first > b.second)
517-
return std::make_pair(0, 0);
517+
return std::make_pair(0.f, 0.f);
518518
return std::make_pair(std::max(a.first, b.first), std::min(a.second, b.second));
519519
}
520520

0 commit comments

Comments
 (0)