]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - pdftops/Stream.h
Load cups into easysw/current.
[thirdparty/cups.git] / pdftops / Stream.h
index 1f22ee657d841931fea90c9b8022a284eb886ee4..e26e67cc118bac5faac6dcd361985ae094ca80c5 100644 (file)
@@ -530,7 +530,7 @@ private:
   short getWhiteCode();
   short getBlackCode();
   short lookBits(int n);
-  void eatBits(int n) { inputBits -= n; }
+  void eatBits(int n) { if ((inputBits -= n) < 0) inputBits = 0; }
 };
 
 //------------------------------------------------------------------------