From ad340d3cb12cd33a33d04d7fce75b3d53b52a4b6 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Sat, 14 Feb 2015 11:11:50 +1100 Subject: Fix warnings for suspicious type conversions and not fully bracketed initializers, --- cocoa/QuartzTextLayout.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa/QuartzTextLayout.h') diff --git a/cocoa/QuartzTextLayout.h b/cocoa/QuartzTextLayout.h index 1e2fbce50..33869ae6e 100644 --- a/cocoa/QuartzTextLayout.h +++ b/cocoa/QuartzTextLayout.h @@ -85,7 +85,7 @@ public: if (mLine == NULL) return 0.0f; - return ::CTLineGetTypographicBounds(mLine, NULL, NULL, NULL); + return static_cast(::CTLineGetTypographicBounds(mLine, NULL, NULL, NULL)); } CTLineRef getCTLine() { -- cgit v1.2.3