From 239a1c88d8e338608692e3201096a7defd983dff Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Sat, 22 Feb 2014 12:26:26 +0100 Subject: [PATCH] Only cast the result. --- src/texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/texture.cpp b/src/texture.cpp index f2c6473..442e486 100644 --- a/src/texture.cpp +++ b/src/texture.cpp @@ -10,7 +10,7 @@ #include #include -#define lengthof(a) (static_cast(sizeof(a)) / static_cast(sizeof(a[0]))) +#define lengthof(a) (static_cast(sizeof(a) / sizeof(a[0]))) namespace cloonel { namespace {