runtime/class.m: Add explicit size_t -> long cast