CollationElementIterator.java (secondaryOrder): Cast result to `short'.
* java/text/CollationElementIterator.java (secondaryOrder): Cast result to `short'. (tertiaryOrder): Likewise. From-SVN: r48162
This commit is contained in:
parent
8c5bc4d56e
commit
e964a852b2
2 changed files with 9 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
// CollationElementIterator.java - Iterate over decomposed characters.
|
||||
|
||||
/* Copyright (C) 1999 Free Software Foundation
|
||||
/* Copyright (C) 1999, 2001 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
|
@ -45,13 +45,13 @@ public final class CollationElementIterator
|
|||
public static final short secondaryOrder (int order)
|
||||
{
|
||||
// From the JDK 1.2 spec.
|
||||
return (order >>> 8) & 255;
|
||||
return (short) ((order >>> 8) & 255);
|
||||
}
|
||||
|
||||
public static final short tertiaryOrder (int order)
|
||||
{
|
||||
// From the JDK 1.2 spec.
|
||||
return order & 255;
|
||||
return (short) (order & 255);
|
||||
}
|
||||
|
||||
// Non-public constructor.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue