]> git.ozlabs.org Git - ccan/commit
configurator: Return pointer difference as ptrdiff_t
authorKevin Locke <kevin@kevinlocke.name>
Fri, 23 Sep 2016 03:33:14 +0000 (21:33 -0600)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 27 Sep 2016 05:39:45 +0000 (15:39 +1000)
commitbecfc7c324d821fe135a1ad843c596399ed5068a
tree25d35d2a5e401d0543a1c1fed68f9c246a408af9
parentc455d55526c0f15a8b54ecc7bbaf282b01c48ad0
configurator: Return pointer difference as ptrdiff_t

On LLP64 systems (like 64-bit Windows) long is 32 bits while pointers
are 64 bits, which results in a warning similar to the following:

warning C4244: 'return': conversion from '__int64' to 'long', possible loss of data

for HAVE_STACK_GROWS_UPWARDS.  Fix this by using the ptrdiff_t type
introduced by C99 for this purpose.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
tools/configurator/configurator.c