Fresco/Babylon/src Dictionary.cc,1.18,1.19
Tobias Hunger <[email protected]> Wed, 28 Jan 2004 16:23:50 +0100
| Newsgroups | gmane.comp.video.fresco.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvs/fresco/Fresco/Babylon/src
In directory purcel:/tmp/cvs-serv2332/src
Modified Files:
Dictionary.cc
Log Message:
Fix is_Private_Use() bug discovered by cow and add a test for this problem.
Index: Dictionary.cc
===================================================================
RCS file: /cvs/fresco/Fresco/Babylon/src/Dictionary.cc,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- Dictionary.cc 29 Dec 2003 08:42:47 -0000 1.18
+++ Dictionary.cc 28 Jan 2004 15:22:38 -0000 1.19
@@ -730,10 +730,10 @@
bool Dictionary::is_Private_Use(const UCS4 uc) const throw (Block_Error)
{
- return (( 0xDB80 <= uc && uc >= 0xDBFF) ||
- ( 0xE000 <= uc && uc >= 0xF8FF) ||
- ( 0xF0000 <= uc && uc >= 0xFFFFF) ||
- (0x100000 <= uc && uc >= 0x10FFFF));
+ return (( 0xDB80 <= uc && uc <= 0xDBFF) ||
+ ( 0xE000 <= uc && uc <= 0xF8FF) ||
+ ( 0xF0000 <= uc && uc <= 0xFFFFF) ||
+ (0x100000 <= uc && uc <= 0x10FFFF));
}
// Other functions: