[Scummvm-cvs-logs] scummvm master -> b4f8e45a3c0ea641a07defd3d2eaf5bd917137c1

bluegr bluegr at gmail.com
Sat Nov 2 18:59:54 CET 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
b4f8e45a3c COMMON: SEEK_END offsets are negative


Commit: b4f8e45a3c0ea641a07defd3d2eaf5bd917137c1
    https://github.com/scummvm/scummvm/commit/b4f8e45a3c0ea641a07defd3d2eaf5bd917137c1
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2013-11-02T10:59:22-07:00

Commit Message:
COMMON: SEEK_END offsets are negative

This was taken directly from the old code, which either used different
semantics, or had a genuine bug

Changed paths:
    common/zlib.cpp



diff --git a/common/zlib.cpp b/common/zlib.cpp
index 1c7e843..f1a298a 100644
--- a/common/zlib.cpp
+++ b/common/zlib.cpp
@@ -252,7 +252,7 @@ public:
 			break;
 		case SEEK_END:
 			// NOTE: This can be an expensive operation (see below).
-			newPos = size() - offset;
+			newPos = size() + offset;
 			break;
 		}
 






More information about the Scummvm-git-logs mailing list