diff options
| author | raysan5 <[email protected]> | 2021-10-13 20:47:42 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-10-13 20:47:42 +0200 |
| commit | a77afd5c8f1d19ff013b798e10dd19e8fbf3f8ae (patch) | |
| tree | ccc057a87714c7ea15604d2c6d5704cc17bc337c | |
| parent | 32c9d411b267010603c0fef2a175b9a1298ca338 (diff) | |
| download | raylib-a77afd5c8f1d19ff013b798e10dd19e8fbf3f8ae.tar.gz raylib-a77afd5c8f1d19ff013b798e10dd19e8fbf3f8ae.zip | |
Reviewed some MSVC warnings
| -rw-r--r-- | src/rmodels.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rmodels.c b/src/rmodels.c index ea1cae6e..ebd0ab22 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -719,7 +719,7 @@ void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float e Vector3 b1 = Vector3Normalize(Vector3Perpendicular(direction)); Vector3 b2 = Vector3Normalize(Vector3CrossProduct(b1, direction)); - float baseAngle = (2.0*PI)/sides; + float baseAngle = (2.0f*PI)/sides; rlBegin(RL_TRIANGLES); rlColor4ub(color.r, color.g, color.b, color.a); @@ -812,7 +812,7 @@ void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, fl Vector3 b1 = Vector3Normalize(Vector3Perpendicular(direction)); Vector3 b2 = Vector3Normalize(Vector3CrossProduct(b1, direction)); - float baseAngle = (2.0*PI)/sides; + float baseAngle = (2.0f*PI)/sides; rlBegin(RL_LINES); rlColor4ub(color.r, color.g, color.b, color.a); @@ -3785,7 +3785,7 @@ static Model LoadOBJ(const char *fileName) // iff no materials are present use all faces on one mesh if (materialCount > 0) { - for (int fi = 0; fi< attrib.num_faces; fi++) + for (unsigned int fi = 0; fi < attrib.num_faces; fi++) { //tinyobj_vertex_index_t face = attrib.faces[fi]; int idx = attrib.material_ids[fi]; |
