diff options
author | Wei Li <weili@chromium.org> | 2016-03-10 12:35:07 -0800 |
---|---|---|
committer | Wei Li <weili@chromium.org> | 2016-03-10 12:35:07 -0800 |
commit | 79fcb5f6fa61967517566100415972848edefd24 (patch) | |
tree | 314016e327303cd3e4e3da06dd1789b79ecbf352 /core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp | |
parent | 2852ce07c4e5b1053420cbf375e098e09faf679c (diff) | |
download | pdfium-79fcb5f6fa61967517566100415972848edefd24.tar.xz |
Change colorspace's number of components to be unsigned
Also remove unnecessary casts.
BUG=pdfium:29
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1783933002 .
Diffstat (limited to 'core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp')
-rw-r--r-- | core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp index a43aff18cb..058cbe77d4 100644 --- a/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp +++ b/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp @@ -36,7 +36,7 @@ void sRGB_to_AdobeCMYK(FX_FLOAT R, } } -int ComponentsForFamily(int family) { +FX_DWORD ComponentsForFamily(int family) { if (family == PDFCS_DEVICERGB) return 3; if (family == PDFCS_DEVICEGRAY) |