Made originalId an unsigned int

This fixes -Wsign-compare and should have no further impact.