Let maxId depend on native size of long