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

Unified Diff: third_party/agg23/agg_path_storage.h

Issue 1981593002: Fix GCC warnings to be ready for GCC standalone build (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: update patch after formatting Created 4 years, 7 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 | « third_party/agg23/README.pdfium ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/agg23/agg_path_storage.h
diff --git a/third_party/agg23/agg_path_storage.h b/third_party/agg23/agg_path_storage.h
index dc13851d09f4344fa541c0239ce3f1a05f9f82de..7f21bacd09c4a79763d73863ea5d9cb5b7e5f358 100644
--- a/third_party/agg23/agg_path_storage.h
+++ b/third_party/agg23/agg_path_storage.h
@@ -38,9 +38,9 @@ public:
}
unsigned vertex(FX_FLOAT* x, FX_FLOAT* y)
{
- return (m_vertex_idx < m_path->total_vertices()) ?
- m_path->vertex(m_vertex_idx++, x, y) :
- path_cmd_stop;
+ return (m_vertex_idx < m_path->total_vertices())
+ ? m_path->vertex(m_vertex_idx++, x, y)
+ : static_cast<unsigned>(path_cmd_stop);
}
private:
const path_storage* m_path;
« no previous file with comments | « third_party/agg23/README.pdfium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698