Fix clang warning by using size_t and not enumerator type

Targets #557.