From 1595b1fbedf5587bc7c60cc7a1156ac1bca69f59 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 7 Apr 2017 19:44:59 +1000 Subject: Prefer C++ static cast over C-style casts. --- include/Platform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/Platform.h b/include/Platform.h index 411d42a03..570ba738b 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -78,7 +78,7 @@ namespace Scintilla { typedef float XYPOSITION; typedef double XYACCUMULATOR; inline int RoundXYPosition(XYPOSITION xyPos) { - return int(xyPos + 0.5); + return static_cast(xyPos + 0.5); } // Underlying the implementation of the platform classes are platform specific types. -- cgit v1.2.3