Re: [PATCH 4 of 9] Fix comparison signedness warnings

2010-08-07 Thread Michael Elkins
On Sat, Aug 07, 2010 at 10:10:16AM +0200, Matthias Andree wrote: Am 07.08.2010, 07:46 Uhr, schrieb Michael Elkins: Alternate version with addition check to make sure cast is safe. -if (!first && pos + strlen (path) >= COLS - 7) +if (!first && (COLS - 7 >= 0) && (pos + strlen (path) >=

Re: [PATCH 4 of 9] Fix comparison signedness warnings

2010-08-07 Thread Matthias Andree
Am 07.08.2010, 07:46 Uhr, schrieb Michael Elkins: Alternate version with addition check to make sure cast is safe. # HG changeset patch # User Matthias Andree # Date 1281124373 -7200 # Branch HEAD # Node ID f6590ddfaf4f1317b85345156a62397f1b530213 # Parent 12ffab6683cd85ed8407683ef377f20798d1

Re: [PATCH 4 of 9] Fix comparison signedness warnings

2010-08-06 Thread Michael Elkins
Alternate version with addition check to make sure cast is safe. # HG changeset patch # User Matthias Andree # Date 1281124373 -7200 # Branch HEAD # Node ID f6590ddfaf4f1317b85345156a62397f1b530213 # Parent 12ffab6683cd85ed8407683ef377f20798d126b4 Fix comparison signedness warnings. diff -r 12

[PATCH 4 of 9] Fix comparison signedness warnings

2010-08-06 Thread Matthias Andree
# HG changeset patch # User Matthias Andree # Date 1281124373 -7200 # Branch HEAD # Node ID 151598faceaeab3c37f1de4274fc8324a88f27f5 # Parent fa6b3ce69655b50e1e8146dce3d4b83f040052fc Fix comparison signedness warnings. diff --git a/buffy.c b/buffy.c --- a/buffy.c +++ b/buffy.c @@ -456,7 +456,7 @