Simplify last commit.
[gnulib.git] / lib / unictype / blocks.c
index a20bbce..a5cddb3 100644 (file)
@@ -1,5 +1,5 @@
 /* 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
@@ -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;
 }