summaryrefslogtreecommitdiff
path: root/src/cr-num.c
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@src.gnome.org>2004-04-18 15:26:47 +0000
committerDodji Seketeli <dodji@src.gnome.org>2004-04-18 15:26:47 +0000
commit6d08258366de84957200071d2ec6aef2c027529c (patch)
tree41690fa2b005f166f6ee92e2915ef48f28d8b925 /src/cr-num.c
parent5d0671c2a41511e78b60f52ad25ac9748fbfd28a (diff)
downloadlibcroco-6d08258366de84957200071d2ec6aef2c027529c.tar.gz
Changes from arch/CVS synchronization
Diffstat (limited to 'src/cr-num.c')
-rw-r--r--src/cr-num.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/cr-num.c b/src/cr-num.c
index 374a5da..5781ae3 100644
--- a/src/cr-num.c
+++ b/src/cr-num.c
@@ -3,7 +3,6 @@
/*
* This file is part of The Croco Library
*
- * Copyright (C) 2002-2003 Dodji Seketeli <dodji@seketeli.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2.1 of the GNU Lesser General Public
@@ -18,6 +17,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
+ *
+ * Author: Dodji Seketeli
+ * See COPYRIGHTS file for copyrights information.
*/
/*
@@ -267,16 +269,11 @@ cr_num_is_fixed_length (CRNum * a_this)
g_return_val_if_fail (a_this, FALSE);
- switch (a_this->type) {
- case NUM_LENGTH_EM...NUM_LENGTH_PC:
- result = TRUE;
- break;
- default:
- result = FALSE;
- break;
+ if (a_this->type >= NUM_LENGTH_EM
+ && a_this->type <= NUM_LENGTH_PC) {
+ result = TRUE ;
}
-
- return result;
+ return result ;
}
/**