src/gl/common.h

changeset 22
6da867fa5429
parent 21
0133e565e072
child 26
3a9e761e4faa
--- a/src/gl/common.h	Wed Jan 01 17:45:56 2020 +0200
+++ b/src/gl/common.h	Sun Jan 19 02:54:48 2020 +0200
@@ -60,7 +60,7 @@
 	/**
 	 * @return amount of vertices used for geometry
 	 */
-	inline int numPolygonVertices() const
+	inline unsigned int numPolygonVertices() const
 	{
 		if (type == Type::ConditionalEdge)
 			return 2;
@@ -71,7 +71,7 @@
 	/**
 	 * @return amount of vertices
 	 */
-	inline int numVertices() const
+	inline unsigned int numVertices() const
 	{
 		switch (type)
 		{
@@ -82,9 +82,8 @@
 		case Type::ConditionalEdge:
 		case Type::Quadrilateral:
 			return 4;
-		default:
-			return 0;
 		}
+		return 0;
 	}
 };
 

mercurial