fixed up thread.c
fixing up fixed point stuff