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

Unified Diff: core/fxcodec/jbig2/JBig2_Context.cpp

Issue 2459073002: Continue fixing FX_BOOL / int noise (Closed)
Patch Set: Created 4 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 | « no previous file | core/fxge/win32/fx_win32_gdipext.cpp » ('j') | core/fxge/win32/fx_win32_gdipext.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fxcodec/jbig2/JBig2_Context.cpp
diff --git a/core/fxcodec/jbig2/JBig2_Context.cpp b/core/fxcodec/jbig2/JBig2_Context.cpp
index 42392236696a8da063b9ab47c07a261fb4268793..a45f40ed317f3a1baaadc7f72aeb71b61b30c139 100644
--- a/core/fxcodec/jbig2/JBig2_Context.cpp
+++ b/core/fxcodec/jbig2/JBig2_Context.cpp
@@ -30,8 +30,8 @@ size_t GetHuffContextSize(uint8_t val) {
return val == 0 ? 65536 : val == 1 ? 8192 : 1024;
}
-size_t GetRefAggContextSize(FX_BOOL val) {
- return val ? 1024 : 8192;
+size_t GetRefAggContextSize(int bVal) {
Lei Zhang 2016/10/28 18:00:52 Why can't this be a bool?
Tom Sepez 2016/10/28 18:04:44 It's only called with things that are ints, so we'
Lei Zhang 2016/10/28 18:09:50 All those ints can be converted to bools: GRTEMPLA
+ return bVal ? 1024 : 8192;
}
} // namespace
« no previous file with comments | « no previous file | core/fxge/win32/fx_win32_gdipext.cpp » ('j') | core/fxge/win32/fx_win32_gdipext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698