Index: core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp |
diff --git a/core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp b/core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp |
index 75f6a231a4966c04a9a999a0e174979a7392807f..4071a115df082de5e4a7a56408daf95d147de639 100644 |
--- a/core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp |
+++ b/core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp |
@@ -381,7 +381,7 @@ int CPDF_DIBSource::ContinueLoadDIBSource(IFX_Pause* pPause) { |
} |
return ret1; |
} |
- FXCODEC_STATUS ret = pJbig2Module->ContinueDecode(m_pJbig2Context, pPause); |
+ ret = pJbig2Module->ContinueDecode(m_pJbig2Context, pPause); |
if (ret < 0) { |
m_pCachedBitmap.reset(); |
m_pGlobalStream.reset(); |
@@ -864,8 +864,8 @@ void CPDF_DIBSource::LoadPalette() { |
m_pColorSpace->CountComponents() > 1) { |
int nComponents = m_pColorSpace->CountComponents(); |
std::vector<FX_FLOAT> temp_buf(nComponents); |
- for (int i = 0; i < nComponents; i++) { |
- temp_buf[i] = *color_value; |
+ for (int k = 0; k < nComponents; k++) { |
+ temp_buf[k] = *color_value; |
} |
m_pColorSpace->GetRGB(temp_buf.data(), R, G, B); |
} else { |