Just the same as the comment below by Nori. unsigned is a machine dependent type.  Anyway, for a modern  machine (), the unsigned variable can have a number big enough for the mesh element index.