commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1090529 - in /commons/sandbox/runtime/trunk/src/main/native: include/acr/jnimacros.h shared/iofd.c
Date Sat, 09 Apr 2011 05:39:02 GMT
Author: mturk
Date: Sat Apr  9 05:39:01 2011
New Revision: 1090529

URL: http://svn.apache.org/viewvc?rev=1090529&view=rev
Log:
Fix typos

Modified:
    commons/sandbox/runtime/trunk/src/main/native/include/acr/jnimacros.h
    commons/sandbox/runtime/trunk/src/main/native/shared/iofd.c

Modified: commons/sandbox/runtime/trunk/src/main/native/include/acr/jnimacros.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/acr/jnimacros.h?rev=1090529&r1=1090528&r2=1090529&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/acr/jnimacros.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/acr/jnimacros.h Sat Apr  9 05:39:01
2011
@@ -130,10 +130,7 @@
     (*_E)->SetStaticBooleanField(_E, _clazzn.i, _f##I##n.i, (V) ? JNI_TRUE : JNI_FALSE)
 
 #define GET_IFIELD_P(I, O, T)  \
-    (T)(*_E)->GetLongField(_E, (O), _f##I##n.i)
-
-#define GET_IFIELD_V(I, O, T)  \
-    (T)((ptrdiff_t)(*_E)->GetLongField(_E, (O), _f##I##n.i)
+    (T)((ptrdiff_t)(*_E)->GetLongField(_E, (O), _f##I##n.i))
 
 #define SET_IFIELD_P(I, O, V)  \
     (*_E)->SetLongField(_E, (O), _f##I##n.i, P2J(V))

Modified: commons/sandbox/runtime/trunk/src/main/native/shared/iofd.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/iofd.c?rev=1090529&r1=1090528&r2=1090529&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/iofd.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/iofd.c Sat Apr  9 05:39:01 2011
@@ -139,7 +139,7 @@ AcrGetFileDescriptorHandle(JNI_STDARGS)
         }
     }
     else if (CLAZZ_LOADED) {
-        fh = GET_IFIELD_V(0001, _O, HANDLE);
+        fh = GET_IFIELD_P(0001, _O, HANDLE);
     }
     return fh;
 }
@@ -152,13 +152,13 @@ AcrSetFileDescriptorHandle(JNI_STDARGS, 
     if (J4FLD_OFF(0001) != INVALID_FIELD_OFFSET) {
         char *oa = *(char **)_O;
         if (oa != 0) {
-            char *fa = (oa + (ptrdiff_t)J4FLD_OFF(0000));
+            char *fa = (oa + (ptrdiff_t)J4FLD_OFF(0001));
             *((jlong *)fa) = P2J(fh);
             rc = 0;
         }
     }
     else if (CLAZZ_LOADED) {
-        SET_IFIELD_P(0000, _O, fh);
+        SET_IFIELD_P(0001, _O, fh);
         rc = 0;
     }
     return rc;



Mime
View raw message