| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include <limits.h> | 7 #include <limits.h> |
| 8 | 8 |
| 9 #include "../../../../third_party/base/numerics/safe_conversions_impl.h" |
| 9 #include "../../../include/fpdfapi/fpdf_module.h" | 10 #include "../../../include/fpdfapi/fpdf_module.h" |
| 10 #include "../../../include/fpdfapi/fpdf_page.h" | 11 #include "../../../include/fpdfapi/fpdf_page.h" |
| 11 #include "../../../include/fxcrt/fx_safe_types.h" | 12 #include "../../../include/fxcrt/fx_safe_types.h" |
| 12 #include "../../../third_party/base/numerics/safe_conversions_impl.h" | |
| 13 #include "pageint.h" | 13 #include "pageint.h" |
| 14 | 14 |
| 15 class CPDF_PSEngine; | 15 class CPDF_PSEngine; |
| 16 typedef enum { | 16 typedef enum { |
| 17 PSOP_ADD, | 17 PSOP_ADD, |
| 18 PSOP_SUB, | 18 PSOP_SUB, |
| 19 PSOP_MUL, | 19 PSOP_MUL, |
| 20 PSOP_DIV, | 20 PSOP_DIV, |
| 21 PSOP_IDIV, | 21 PSOP_IDIV, |
| 22 PSOP_MOD, | 22 PSOP_MOD, |
| (...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 for (int i = 0; i < m_nOutputs; i++) { | 909 for (int i = 0; i < m_nOutputs; i++) { |
| 910 if (results[i] < m_pRanges[i * 2]) { | 910 if (results[i] < m_pRanges[i * 2]) { |
| 911 results[i] = m_pRanges[i * 2]; | 911 results[i] = m_pRanges[i * 2]; |
| 912 } else if (results[i] > m_pRanges[i * 2 + 1]) { | 912 } else if (results[i] > m_pRanges[i * 2 + 1]) { |
| 913 results[i] = m_pRanges[i * 2 + 1]; | 913 results[i] = m_pRanges[i * 2 + 1]; |
| 914 } | 914 } |
| 915 } | 915 } |
| 916 } | 916 } |
| 917 return TRUE; | 917 return TRUE; |
| 918 } | 918 } |
| OLD | NEW |