summaryrefslogtreecommitdiff
path: root/lib/unictype/blocks.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/unictype/blocks.c')
-rw-r--r--lib/unictype/blocks.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/unictype/blocks.c b/lib/unictype/blocks.c
index a20bbce..e83e546 100644
--- a/lib/unictype/blocks.c
+++ b/lib/unictype/blocks.c
@@ -1,5 +1,5 @@
/* Blocks of Unicode characters.
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2010 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2007.
This program is free software: you can redistribute it and/or modify it
@@ -45,11 +45,11 @@ uc_block (ucs4_t uc)
{
unsigned int mid_index = (first_index + last_index) / 2;
if (blocks[mid_index].end < uc)
- first_index = mid_index + 1;
+ first_index = mid_index + 1;
else if (uc < blocks[mid_index].start)
- last_index = mid_index;
+ last_index = mid_index;
else
- return &blocks[mid_index];
+ return &blocks[mid_index];
}
return NULL;
}