From ae0a209295a06c854e1fff537f29d334a95f5b98 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sun, 3 Nov 2013 15:35:11 -0800 Subject: [PATCH] fix -Wsign-conversion warnings --- src/cairo_context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cairo_context.cpp b/src/cairo_context.cpp index 413f76032..220ff2627 100644 --- a/src/cairo_context.cpp +++ b/src/cairo_context.cpp @@ -221,7 +221,7 @@ void cairo_context::set_line_width(double width) check_object_status_and_throw_exception(*this); } -void cairo_context::set_dash(dash_array const &dashes, double scale_factor) +void cairo_context::set_dash(dash_array const& dashes, double scale_factor) { std::valarray d(dashes.size() * 2); dash_array::const_iterator itr = dashes.begin(); @@ -234,7 +234,7 @@ void cairo_context::set_dash(dash_array const &dashes, double scale_factor) d[index++] = itr->second * scale_factor; } - cairo_set_dash(cairo_.get() , &d[0], d.size(), 0/*offset*/); + cairo_set_dash(cairo_.get() , &d[0], static_cast(d.size()), 0/*offset*/); check_object_status_and_throw_exception(*this); }