Commit 92ff36d4 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Adaptive: fix integer promotion

std::max is only defined on same T type. Older GCC fail to promote it
correctly.
parent 4e38dcb0
...@@ -187,7 +187,7 @@ ISegment * SegmentInformation::getNextSegment(SegmentInfoType type, uint64_t i_p ...@@ -187,7 +187,7 @@ ISegment * SegmentInformation::getNextSegment(SegmentInfoType type, uint64_t i_p
{ {
*pi_newpos = i_pos; *pi_newpos = i_pos;
/* start number */ /* start number */
*pi_newpos = std::max(templ->startNumber.Get(), i_pos); *pi_newpos = std::max((uint64_t)templ->startNumber.Get(), i_pos);
} }
return seg; return seg;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment