Fixed signedness in try_abbreviations_from for Mantis 1130.