diff options
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPPointerType.java')
-rw-r--r-- | core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPPointerType.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPPointerType.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPPointerType.java index 47fcc5db617..7993228e425 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPPointerType.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPPointerType.java @@ -108,20 +108,20 @@ public class CPPPointerType implements IPointerType, ITypeContainer, ISerializab @Override public void marshal(ITypeMarshalBuffer buffer) throws CoreException { - int firstByte= ITypeMarshalBuffer.POINTER_TYPE; - if (isConst()) firstByte |= ITypeMarshalBuffer.FLAG1; - if (isVolatile()) firstByte |= ITypeMarshalBuffer.FLAG2; - if (isRestrict()) firstByte |= ITypeMarshalBuffer.FLAG3; - buffer.putByte((byte) firstByte); + short firstBytes= ITypeMarshalBuffer.POINTER_TYPE; + if (isConst()) firstBytes |= ITypeMarshalBuffer.FLAG1; + if (isVolatile()) firstBytes |= ITypeMarshalBuffer.FLAG2; + if (isRestrict()) firstBytes |= ITypeMarshalBuffer.FLAG3; + buffer.putShort(firstBytes); final IType nestedType = getType(); buffer.marshalType(nestedType); } - public static IType unmarshal(int firstByte, ITypeMarshalBuffer buffer) throws CoreException { + public static IType unmarshal(short firstBytes, ITypeMarshalBuffer buffer) throws CoreException { IType nested= buffer.unmarshalType(); - return new CPPPointerType(nested, (firstByte & ITypeMarshalBuffer.FLAG1) != 0, - (firstByte & ITypeMarshalBuffer.FLAG2) != 0, - (firstByte & ITypeMarshalBuffer.FLAG3) != 0); + return new CPPPointerType(nested, (firstBytes & ITypeMarshalBuffer.FLAG1) != 0, + (firstBytes & ITypeMarshalBuffer.FLAG2) != 0, + (firstBytes & ITypeMarshalBuffer.FLAG3) != 0); } @Override |