Fix clang warning by using size_t and not enumerator type
Merge pull request #559 from matthiasbeyer/fix-clang_warning

Fix clang warning by using size_t and not enumerator type