Fix stupid bug in tdefcolor returning -1 in unsigned function