Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Unified Diff: third_party/android_crazy_linker/src/src/crazy_linker_leb128.h

Issue 668543003: Use consistent types for leb128 decoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/android_crazy_linker/README.chromium ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/android_crazy_linker/src/src/crazy_linker_leb128.h
diff --git a/third_party/android_crazy_linker/src/src/crazy_linker_leb128.h b/third_party/android_crazy_linker/src/src/crazy_linker_leb128.h
index 3d0ad8f3641de86b3269792ecdafae053521b82b..0888d77cb575775f6e5af8c08a14eeddbfaf8276 100644
--- a/third_party/android_crazy_linker/src/src/crazy_linker_leb128.h
+++ b/third_party/android_crazy_linker/src/src/crazy_linker_leb128.h
@@ -18,14 +18,14 @@ class Leb128Decoder {
: encoding_(encoding), cursor_(0) { }
size_t Dequeue() {
- uint32_t value = 0;
+ size_t value = 0;
size_t shift = 0;
uint8_t byte;
do {
byte = encoding_[cursor_++];
- value |= static_cast<uint32_t>(byte & 127) << shift;
+ value |= static_cast<size_t>(byte & 127) << shift;
shift += 7;
} while (byte & 128);
« no previous file with comments | « third_party/android_crazy_linker/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698