warning: tweak.c:538 no return at end of function: tohex