Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Compiler warning after workers/39825



On Mon, Nov 7, 2016, at 03:50 PM, Bart Schaefer wrote:
> ../../zsh-5.0/Src/utils.c: In function `mb_metastrlenend':
> ../../zsh-5.0/Src/utils.c:5344: warning: comparison is always true due to
> limited range of data type
> 
> commit 9c68ef08

Probably an enlightenment is scheduled on this, but first
rejecting-facts reaction is that you might have modified the line maybe?
Why would char be always in 0 .. 0x7f is a mystery.  Clang doesn't yield
the warning.

BTW. this can be optimized more: `!num_in_char` instead of `complete`,
and no `num_in_char = 0` assignment.

-- 
  Sebastian Gniazdowski
  psprint@xxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author