From b2e00f113c29a9c2aa1000b42fe3bbde8024a361 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 2 Nov 2012 12:14:06 +0000 Subject: [PATCH] build: fix minor build issues with Clang. --- src/lol/math/vector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lol/math/vector.h b/src/lol/math/vector.h index 36ce63f8..59adc8a7 100644 --- a/src/lol/math/vector.h +++ b/src/lol/math/vector.h @@ -1203,9 +1203,9 @@ extern Quat slerp(Quat const &qa, Quat const &qb, T f); } \ \ tprefix \ - inline double length(tname const &a) \ + inline type length(tname const &a) \ { \ - return sqrt((double)sqlength(a)); \ + return (type)sqrt((double)sqlength(a)); \ } \ \ tprefix \