From 47bba8a1e61650b08d20596949860f440fd157d9 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 29 May 2020 16:47:47 +0200 Subject: [PATCH] Fix JpegCompressor::overrun() type change The method it overloads got tweaked some time ago, so we need to make sure this method follows suit. --- common/rfb/JpegCompressor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rfb/JpegCompressor.h b/common/rfb/JpegCompressor.h index 8fbb7a9..9c6332b 100644 --- a/common/rfb/JpegCompressor.h +++ b/common/rfb/JpegCompressor.h @@ -49,7 +49,7 @@ namespace rfb { inline rdr::U8* getstart() { return start; } - inline int overrun(int itemSize, int nItems) { + virtual inline size_t overrun(size_t itemSize, size_t nItems) { return MemOutStream::overrun(itemSize, nItems); }