gambatte_qt/framework: avoid promoting -1 to size_t
This commit is contained in:
parent
5a8665df68
commit
fb4feee1f0
@ -45,7 +45,7 @@ std::ptrdiff_t SourceUpdater::update(PixelBuffer const &pb) {
|
||||
updateSamples);
|
||||
samplesBuffered_ += updateSamples;
|
||||
return vidFrameDoneSampleNo >= 0
|
||||
? samplesBuffered_ - updateSamples + vidFrameDoneSampleNo
|
||||
? std::ptrdiff_t(samplesBuffered_ - updateSamples + vidFrameDoneSampleNo)
|
||||
: -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user