Hmm -- gcc 4.8 on 64 bit ubuntu 14, thinks that what we call a uint64 is not the same as a ULL suffixed constant. Not sure what it is, but qualifying the 'min' function removes any ambiguity.