ICU-2653 compare character age values with <= semantics not ==
X-SVN-Rev: 11165
This commit is contained in:
parent
9c6b10e2dc
commit
eece437e5b
@ -2566,10 +2566,10 @@ static UBool generalCategoryMaskFilter(UChar32 ch, void* context) {
|
||||
}
|
||||
|
||||
static UBool versionFilter(UChar32 ch, void* context) {
|
||||
UVersionInfo v;
|
||||
UVersionInfo v, none = { 0, 0, 0, 0};
|
||||
UVersionInfo* version = (UVersionInfo*)context;
|
||||
u_charAge(ch, v);
|
||||
return uprv_memcmp(&v, version, sizeof(v)) == 0;
|
||||
return uprv_memcmp(&v, &none, sizeof(v)) > 0 && uprv_memcmp(&v, version, sizeof(v)) <= 0;
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
|
Loading…
Reference in New Issue
Block a user