projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2257168
)
Adjust for the changes in master.
author
Zack Rusin
<zack@kde.org>
Fri, 2 Sep 2011 23:14:57 +0000
(19:14 -0400)
committer
Zack Rusin
<zack@kde.org>
Fri, 2 Sep 2011 23:14:57 +0000
(19:14 -0400)
trace_snappyfile.cpp
patch
|
blob
|
history
diff --git
a/trace_snappyfile.cpp
b/trace_snappyfile.cpp
index
c350013
..
cea4e68
100644
(file)
--- a/
trace_snappyfile.cpp
+++ b/
trace_snappyfile.cpp
@@
-303,9
+303,9
@@
bool SnappyFile::rawSkip(unsigned length)
if (freeCacheSize() >= length) {
m_cachePtr += length;
} else {
-
in
t sizeToRead = length;
+
size_
t sizeToRead = length;
while (sizeToRead) {
-
in
t chunkSize = std::min(freeCacheSize(), sizeToRead);
+
size_
t chunkSize = std::min(freeCacheSize(), sizeToRead);
m_cachePtr += chunkSize;
sizeToRead -= chunkSize;
if (sizeToRead > 0)