* grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-03-08 19:05:43 +01:00
parent 52bfedfa39
commit ecdbae77ca
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix

View file

@ -633,7 +633,7 @@ bidi_line_wrap (struct grub_unicode_glyph *visual_out,
{
int right_join = 0;
signed i;
for (i = k - 1; i >= 0 && (unsigned) i >= line_start;
for (i = k - 1; i >= 0 && (unsigned) i + 1 > line_start;
i--)
{
enum grub_join_type join_type = get_join_type (visual[i].base);