Selaa lähdekoodia

Explicit ctor from float to Vec3.

Бранимир Караџић 6 vuotta sitten
vanhempi
sitoutus
32ac9ad461
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      include/bx/math.h

+ 1 - 1
include/bx/math.h

@@ -57,7 +57,7 @@ namespace bx
 		Vec3();
 
 		///
-		constexpr Vec3(float _v);
+		explicit constexpr Vec3(float _v);
 
 		///
 		constexpr Vec3(float _x, float _y, float _z);