From b7ef34f59186017c068803cc7085d7d9dbdbd1a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 5 Jul 2015 16:08:21 +0200 Subject: [PATCH] Fix compilation under libc++. --- src/Magnum/Implementation/BufferState.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Implementation/BufferState.cpp b/src/Magnum/Implementation/BufferState.cpp index 84fb4ff8b..670481cb0 100644 --- a/src/Magnum/Implementation/BufferState.cpp +++ b/src/Magnum/Implementation/BufferState.cpp @@ -185,7 +185,8 @@ BufferState::BufferState(Context& context, std::vector& extensions) } void BufferState::reset() { - std::fill_n(bindings, TargetCount, State::DisengagedBinding); + /* libc++ complains about decrementing enum value otherwise */ + std::fill_n(bindings, std::size_t{TargetCount}, State::DisengagedBinding); } }}