Kim Kulling 4 سال پیش
والد
کامیت
658fec3e61
1فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 3
      include/assimp/vector3.inl

+ 1 - 3
include/assimp/vector3.inl

@@ -5,8 +5,6 @@ Open Asset Import Library (assimp)
 
 
 Copyright (c) 2006-2020, assimp team
 Copyright (c) 2006-2020, assimp team
 
 
-
-
 All rights reserved.
 All rights reserved.
 
 
 Redistribution and use of this software in source and binary forms,
 Redistribution and use of this software in source and binary forms,
@@ -154,7 +152,7 @@ const aiVector3t<TReal>& aiVector3t<TReal>::operator *= (TReal f) {
 template <typename TReal>
 template <typename TReal>
 AI_FORCE_INLINE
 AI_FORCE_INLINE
 const aiVector3t<TReal>& aiVector3t<TReal>::operator /= (TReal f) {
 const aiVector3t<TReal>& aiVector3t<TReal>::operator /= (TReal f) {
-    if ((T) f==0.0) {
+    if ( f == static_cast<TReal>(0.0)) {
         return *this;
         return *this;
     }
     }
     const TReal invF = (TReal) 1.0 / f;
     const TReal invF = (TReal) 1.0 / f;