From 0b3c2e5944a27e5eebc6fb82270aae3c91cebc1a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 20 Mar 2013 02:38:35 +0100 Subject: Fix unit test of commit 1610dbb4e4d1a1ecf31eb837a47e0f5be04afdac: Add native address cleanup (32bit) --- src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java b/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java index 1ce97b5..357ccea 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java @@ -623,7 +623,7 @@ public class BaseClass extends JunitTracer { bbPb = safeByteBuffer2PointerBuffer(bb, 1); Assert.assertEquals(DEADBEEF, 0xFFFFFFFF & bbPb.get(0)); - Assert.assertEquals(blobPb.get(0), binding.getAPtrAddress(bbPb.getBuffer())); + Assert.assertEquals( blobPb.get(0), cleanAddress( binding.getAPtrAddress(bbPb.getBuffer()) ) ); bb2 = binding.arrayTestAVoidPtrTypeDim0(bb); bbA2 = cleanAddress( binding.getAPtrAddress(bb2) ); @@ -672,7 +672,7 @@ public class BaseClass extends JunitTracer { bbPb = safeByteBuffer2PointerBuffer(bb, 1); Assert.assertEquals(DEADBEEF, 0xFFFFFFFF & bbPb.get(0)); - Assert.assertEquals(blobPb.get(0), binding.getAPtrAddress(bbPb.getBuffer())); + Assert.assertEquals(blobPb.get(0), cleanAddress( binding.getAPtrAddress(bbPb.getBuffer()) ) ); bb2 = binding.arrayTestAPtr1TypeDim0(bb); bbA2 = cleanAddress( binding.getAPtrAddress(bb2) ); -- cgit v1.2.3