* patch by Bart B to fix the value of Code for unsigned types if the input is negative, resolves #39523