diff options
author | Sven Gothel <[email protected]> | 2010-03-28 19:26:16 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-03-28 19:26:16 +0200 |
commit | ca2ccb29bd3cd4d9c73ca96ce02402888ac9e9af (patch) | |
tree | a06c5ea8b8fbf90c4d4a2affdd9afe882caf6baa /src/java/com/sun/gluegen/JavaEmitter.java | |
parent | be3ddc922fda13c0ba344909b3639a2c78c4b809 (diff) |
Merge CPU to Platform
Diffstat (limited to 'src/java/com/sun/gluegen/JavaEmitter.java')
-rw-r--r-- | src/java/com/sun/gluegen/JavaEmitter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/sun/gluegen/JavaEmitter.java b/src/java/com/sun/gluegen/JavaEmitter.java index b2f7578..6658a16 100644 --- a/src/java/com/sun/gluegen/JavaEmitter.java +++ b/src/java/com/sun/gluegen/JavaEmitter.java @@ -909,7 +909,7 @@ public class JavaEmitter implements GlueEmitter { } writer.println(" public static int size() {"); if (doBaseClass) { - writer.println(" if (CPU.is32Bit()) {"); + writer.println(" if (Platform.is32Bit()) {"); writer.println(" return " + containingTypeName + "32" + ".size();"); writer.println(" } else {"); writer.println(" return " + containingTypeName + "64" + ".size();"); @@ -925,7 +925,7 @@ public class JavaEmitter implements GlueEmitter { writer.println(" }"); writer.println(); writer.println(" public static " + containingTypeName + " create(java.nio.ByteBuffer buf) {"); - writer.println(" if (CPU.is32Bit()) {"); + writer.println(" if (Platform.is32Bit()) {"); writer.println(" return new " + containingTypeName + "32(buf);"); writer.println(" } else {"); writer.println(" return new " + containingTypeName + "64(buf);"); |