]> granicus.if.org Git - curl/commit
timeval.c: Use long long constant type for timeval assignment
authorMartin Kepplinger <martink@posteo.de>
Mon, 3 Jul 2017 11:23:47 +0000 (13:23 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 4 Jul 2017 05:59:21 +0000 (07:59 +0200)
commitf50124f56614d1c270bd11c7bf32ddc2a8322b7e
treef9f8bdd038b50b212d03bb09efe03b0af9dcff9e
parentb3786f61dc53adba67dd489e404dc68a4b26575e
timeval.c: Use long long constant type for timeval assignment

On a 64 bit host, sparse says:

timeval.c:148:15: warning: constant 0x7fffffffffffffff is so big it is long
timeval.c:149:12: warning: constant 0x7fffffffffffffff is so big it is long

so let's use long long constant types in order to prevent undesired overflow
failures.

Bug: https://curl.haxx.se/mail/lib-2017-07/0003.html

Closes #1636

Signed-off-by: Martin Kepplinger <martink@posteo.de>
lib/timeval.c