aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/QuartzTextLayout.h
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2015-02-14 11:11:50 +1100
committerNeil Hodgson <nyamatongwe@gmail.com>2015-02-14 11:11:50 +1100
commit9b01cf93e9d08be90bdce08a12be77ef4f6332fc (patch)
tree1cbe430090714c0691245ddc72a94f158c72f902 /cocoa/QuartzTextLayout.h
parenta2f8fd71a1c55e7b8e66f9f299dcdfdafe5d7d6e (diff)
downloadscintilla-mirror-9b01cf93e9d08be90bdce08a12be77ef4f6332fc.tar.gz
Fix warnings for suspicious type conversions and not fully bracketed initializers,
Diffstat (limited to 'cocoa/QuartzTextLayout.h')
-rw-r--r--cocoa/QuartzTextLayout.h2
1 files changed, 1 insertions, 1 deletions
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<float>(::CTLineGetTypographicBounds(mLine, NULL, NULL, NULL));
}
CTLineRef getCTLine() {