subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1033104 - /subversion/trunk/subversion/bindings/javahl/native/EnumMapper.cpp
Date Tue, 09 Nov 2010 17:14:16 GMT
Author: hwright
Date: Tue Nov  9 17:14:16 2010
New Revision: 1033104

URL: http://svn.apache.org/viewvc?rev=1033104&view=rev
Log:
* subversion/bindings/javahl/native/EnumMapper.cpp
  (mapTristate): Adjust for the new tristate enum values.

Modified:
    subversion/trunk/subversion/bindings/javahl/native/EnumMapper.cpp

Modified: subversion/trunk/subversion/bindings/javahl/native/EnumMapper.cpp
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/javahl/native/EnumMapper.cpp?rev=1033104&r1=1033103&r2=1033104&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/javahl/native/EnumMapper.cpp (original)
+++ subversion/trunk/subversion/bindings/javahl/native/EnumMapper.cpp Tue Nov  9 17:14:16
2010
@@ -195,7 +195,7 @@ jobject EnumMapper::mapOperation(svn_wc_
 jobject EnumMapper::mapTristate(svn_tristate_t tristate)
 {
   // We're assuming a valid value for the C enum above
-  return mapEnum(JAVA_PACKAGE"/Tristate", (int) tristate);
+  return mapEnum(JAVA_PACKAGE"/Tristate", (int) (tristate - svn_tristate_false));
 }
 
 svn_wc_conflict_choice_t EnumMapper::toConflictChoice(jobject jchoice)



Mime
View raw message