瀏覽代碼

build: fix minor build issues with Clang.

legacy
Sam Hocevar sam 13 年之前
父節點
當前提交
b2e00f113c
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/lol/math/vector.h

+ 2
- 2
src/lol/math/vector.h 查看文件

@@ -1203,9 +1203,9 @@ extern Quat<T> slerp(Quat<T> const &qa, Quat<T> const &qb, T f);
} \
\
tprefix \
inline double length(tname<type> const &a) \
inline type length(tname<type> const &a) \
{ \
return sqrt((double)sqlength(a)); \
return (type)sqrt((double)sqlength(a)); \
} \
\
tprefix \


Loading…
取消
儲存