On 01/02/17 17:54, Conrad Meyer wrote:
I was suggesting using UINT32_MAX/2 on all platforms (which is safe
everywhere).


Ah OK. INT_MAX is ~ (UINT_MAX / 2) so it's the same to use either.
I just think it's clearer to use INT_MAX and the corresponding int
type.

The other issue is if diff(1) can handle such lines(?).

Pedro.


Best,
Conrad

On Mon, Jan 2, 2017 at 11:48 AM Pedro Giffuni <[email protected]
<mailto:[email protected]>> wrote:

    Hi;



    On 01/02/17 13:28, Conrad Meyer wrote:

    > IMO this patch was mostly fine, you just need to restrict line length

    > to UINT32_MAX/2 instead of UINT_MAX (== UINT32_MAX) for 32-bit

    > platforms.

    >

    > Best,

    > Conrad

    >



    I dislike the idea of special cases for some platforms. I guess moving

    to int/INT_MAX would be the way to go.



    TBH, no one has asked for patches wider than USHRT_MAX though.



    Pedro.

_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to