[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] parse-datetime: use labs for long int

From: Paul Eggert
Subject: Re: [PATCH] parse-datetime: use labs for long int
Date: Sat, 22 Apr 2017 02:18:42 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Thanks for the heads-up. That code has long been on my list of things to clean up, and your message prompted me to go about it. I installed the attached, which fixes the runtime problem corresponding to the diagnostic you mentioned, along with a lot of other problems. Please give it a try. I hope that your clang is smart enough not to complain about expressions like abs (x % 60) merely because x's data type is wider than int.

Attachment: 0001-parse-datetime-overflow-and-debug-cleanups.txt
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]