projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify last commit.
[gnulib.git]
/
lib
/
unictype
/
blocks.c
diff --git
a/lib/unictype/blocks.c
b/lib/unictype/blocks.c
index
a20bbce
..
a5cddb3
100644
(file)
--- a/
lib/unictype/blocks.c
+++ b/
lib/unictype/blocks.c
@@
-1,5
+1,5
@@
/* Blocks of Unicode characters.
/* Blocks of Unicode characters.
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007
, 2009-2012
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
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)
{
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)
else if (uc < blocks[mid_index].start)
- last_index = mid_index;
+
last_index = mid_index;
else
else
- return &blocks[mid_index];
+
return &blocks[mid_index];
}
return NULL;
}
}
return NULL;
}