From fb4feee1f0b11d1ac1e39b51e48863d566422d99 Mon Sep 17 00:00:00 2001 From: sinamas Date: Sun, 12 May 2013 14:51:24 +0200 Subject: [PATCH] gambatte_qt/framework: avoid promoting -1 to size_t --- gambatte_qt/src/framework/src/sourceupdater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gambatte_qt/src/framework/src/sourceupdater.cpp b/gambatte_qt/src/framework/src/sourceupdater.cpp index ffd2eefb..918c8e93 100644 --- a/gambatte_qt/src/framework/src/sourceupdater.cpp +++ b/gambatte_qt/src/framework/src/sourceupdater.cpp @@ -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; }