Update hex_to_dec.c

Made internals much nicer