mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 06:50:08 +00:00
Char: vt, use ARRAY_SIZE
vt, use ARRAY_SIZE Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Acked-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
a1152934c6
commit
0f11541b50
@ -1990,8 +1990,7 @@ static int is_double_width(uint32_t ucs)
|
|||||||
{ 0xFE10, 0xFE19 }, { 0xFE30, 0xFE6F }, { 0xFF00, 0xFF60 },
|
{ 0xFE10, 0xFE19 }, { 0xFE30, 0xFE6F }, { 0xFF00, 0xFF60 },
|
||||||
{ 0xFFE0, 0xFFE6 }, { 0x20000, 0x2FFFD }, { 0x30000, 0x3FFFD }
|
{ 0xFFE0, 0xFFE6 }, { 0x20000, 0x2FFFD }, { 0x30000, 0x3FFFD }
|
||||||
};
|
};
|
||||||
return bisearch(ucs, double_width,
|
return bisearch(ucs, double_width, ARRAY_SIZE(double_width) - 1);
|
||||||
sizeof(double_width) / sizeof(*double_width) - 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* acquires console_sem */
|
/* acquires console_sem */
|
||||||
|
Loading…
Reference in New Issue
Block a user