xref: /aosp_15_r20/external/pdfium/third_party/agg23/0001-gcc-warning.patch (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1*3ac0a46fSAndroid Build Coastguard Workerdiff --git a/third_party/agg23/agg_path_storage.h b/third_party/agg23/agg_path_storage.h
2*3ac0a46fSAndroid Build Coastguard Workerindex dc13851..7f21bac 100644
3*3ac0a46fSAndroid Build Coastguard Worker--- a/third_party/agg23/agg_path_storage.h
4*3ac0a46fSAndroid Build Coastguard Worker+++ b/third_party/agg23/agg_path_storage.h
5*3ac0a46fSAndroid Build Coastguard Worker@@ -38,9 +38,9 @@ public:
6*3ac0a46fSAndroid Build Coastguard Worker         }
7*3ac0a46fSAndroid Build Coastguard Worker         unsigned vertex(float* x, float* y)
8*3ac0a46fSAndroid Build Coastguard Worker         {
9*3ac0a46fSAndroid Build Coastguard Worker-            return (m_vertex_idx < m_path->total_vertices()) ?
10*3ac0a46fSAndroid Build Coastguard Worker-                   m_path->vertex(m_vertex_idx++, x, y) :
11*3ac0a46fSAndroid Build Coastguard Worker-                   path_cmd_stop;
12*3ac0a46fSAndroid Build Coastguard Worker+          return (m_vertex_idx < m_path->total_vertices())
13*3ac0a46fSAndroid Build Coastguard Worker+                     ? m_path->vertex(m_vertex_idx++, x, y)
14*3ac0a46fSAndroid Build Coastguard Worker+                     : static_cast<unsigned>(path_cmd_stop);
15*3ac0a46fSAndroid Build Coastguard Worker         }
16*3ac0a46fSAndroid Build Coastguard Worker     private:
17*3ac0a46fSAndroid Build Coastguard Worker         const path_storage* m_path;
18