gambatte_qt/framework: avoid promoting -1 to size_t

This commit is contained in:
sinamas 2013-05-12 14:51:24 +02:00
parent 5a8665df68
commit fb4feee1f0

View File

@ -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;
}