This fixes #7830.  The return of the power and impedance encoding functions was being force into an int.  That was okay for a 64bit machine, but it is not for a 32 bit machine.