Fixed overflow for negative temperatures

Don't know why the hell they did it as unsigned in the first place.