m17n-list
[Top][All Lists]
Advanced

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

[m17n-list] m17n-lib-1.6.4/src/mtext.c:1844: possible bad if test ?


From: David Binderman
Subject: [m17n-list] m17n-lib-1.6.4/src/mtext.c:1844: possible bad if test ?
Date: Thu, 24 Oct 2013 08:19:05 +0000

Hello there,

I just compiled the package with extra gcc compiler flag -Wlogical-op.

It said

mtext.c:1844:4: warning: logical 'or' of collectively exhaustive tests is 
always true [-Wlogical-op]

Source code is

      if (p1[0]>= 0xD800 || p1[0] < 0xDC00)

Suggest swap || for &&

Regards

David Binderman                                           


reply via email to

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