dT is only adjusted temporarily, during the calculation of TEMP. That code does not change dT at all.
The calculation I chose, TEMP, is a simple one, because the result was already specified as a 32-bit variable. I didn't change the definition of the result variable; I only changed the values...