From 35aa2d75c7bbdd60ad7ac68bb1bd8a4a4a8d9352 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Sat, 26 Oct 2013 10:22:08 -0700 Subject: [PATCH] =?UTF-8?q?Fixed=20warning:=20operation=20on=20=E2=80=98cu?= =?UTF-8?q?rrentDirection=E2=80=99=20may=20be=20undefined.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/14-shadowvolumes/shadowvolumes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/14-shadowvolumes/shadowvolumes.cpp b/examples/14-shadowvolumes/shadowvolumes.cpp index 175edcc7..0a40ebd1 100644 --- a/examples/14-shadowvolumes/shadowvolumes.cpp +++ b/examples/14-shadowvolumes/shadowvolumes.cpp @@ -2443,7 +2443,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) ++stateStep; if (stateStep >= ( (stateChange & ~0x1) >> 1) ) { - currentDirection = (++currentDirection) & directionMask; + currentDirection = (currentDirection + 1) & directionMask; stateStep = 0; ++stateChange; }