summaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/gluegen/test
diff options
context:
space:
mode:
authorWade Walker <[email protected]>2014-03-04 15:37:38 -0600
committerWade Walker <[email protected]>2014-03-04 15:37:38 -0600
commit0b2b05c25b5072ccbce0f92e66f29b45bde762cd (patch)
tree5e04e04b34e9ff5d92dceccaaa8050fcf218e022 /src/junit/com/jogamp/gluegen/test
parent86c868fcb78b53f02ad2bae1770e4db61b892678 (diff)
Fix accidental tabs.
Diffstat (limited to 'src/junit/com/jogamp/gluegen/test')
-rw-r--r--src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java10
-rw-r--r--src/junit/com/jogamp/gluegen/test/junit/generation/test1.c18
2 files changed, 14 insertions, 14 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 f0db24b..a97430a 100644
--- a/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java
+++ b/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java
@@ -560,10 +560,10 @@ public class BaseClass extends JunitTracer {
Assert.assertTrue("Wrong result: "+i, 0==i);
{
- // one 0xff in each byte array
+ // one 0xff in each byte array
// the referenced buffer must be direct, non direct is not supported
- ByteBuffer bbB = Buffers.newDirectByteBuffer(new byte [] {(byte)0xaa, (byte)0xff, (byte)0xba, (byte)0xbe});
- bbB.rewind();
+ ByteBuffer bbB = Buffers.newDirectByteBuffer(new byte [] {(byte)0xaa, (byte)0xff, (byte)0xba, (byte)0xbe});
+ bbB.rewind();
PointerBuffer pbB = newPointerBuffer(Bindingtest1.ARRAY_SIZE, direct);
PointerBuffer pbL = newPointerBuffer(Bindingtest1.ARRAY_SIZE, direct);
for(int j=0; j<Bindingtest1.ARRAY_SIZE; j++) {
@@ -579,8 +579,8 @@ public class BaseClass extends JunitTracer {
long temp = pbL.get();
Assert.assertTrue("Wrong result: "+temp, temp==bbB.capacity());
pbL.rewind();
- i = binding.binaryArrayRead(pbL, pbB, Bindingtest1.ARRAY_SIZE);
- Assert.assertTrue("Wrong result: "+i, Bindingtest1.ARRAY_SIZE==i);
+ i = binding.binaryArrayRead(pbL, pbB, Bindingtest1.ARRAY_SIZE);
+ Assert.assertTrue("Wrong result: "+i, Bindingtest1.ARRAY_SIZE==i);
}
IntBuffer ib = newIntBuffer(3, direct);
diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/test1.c b/src/junit/com/jogamp/gluegen/test/junit/generation/test1.c
index c1fe41e..fda37f7 100644
--- a/src/junit/com/jogamp/gluegen/test/junit/generation/test1.c
+++ b/src/junit/com/jogamp/gluegen/test/junit/generation/test1.c
@@ -237,15 +237,15 @@ MYAPI int MYAPIENTRY stringArrayRead(const char * * strings, int num) {
}
MYAPI int MYAPIENTRY binaryArrayRead(const size_t * lengths, const unsigned char * * binaries, int num) {
- int i, j, n=0;
- for(i=0; i<num; i++) {
- for(j=0; j<lengths[i]; j++) {
- if(0xff==binaries[i][j]) {
- ++n;
- }
- }
- }
- return n;
+ int i, j, n=0;
+ for(i=0; i<num; i++) {
+ for(j=0; j<lengths[i]; j++) {
+ if(0xff==binaries[i][j]) {
+ ++n;
+ }
+ }
+ }
+ return n;
}
MYAPI int MYAPIENTRY intArrayRead(const int * ints, int num) {