db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1070676 - /db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
Date Mon, 14 Feb 2011 21:36:42 GMT
Author: kahatlen
Date: Mon Feb 14 21:36:42 2011
New Revision: 1070676

URL: http://svn.apache.org/viewvc?rev=1070676&view=rev
Log:
DERBY-5036: fix impossible comparison due to sign extension

Patch contributed by Dave Brosius <dbrosius@apache.org>.

Modified:
    db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java

Modified: db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java?rev=1070676&r1=1070675&r2=1070676&view=diff
==============================================================================
--- db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java (original)
+++ db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java Mon Feb 14
21:36:42 2011
@@ -3428,7 +3428,7 @@ class DRDAConnThread extends Thread {
 					break;
 				case CodePoint.TRGDFTRT:
 					byte b = reader.readByte();
-					if (b == 0xF1)
+					if (b == (byte)0xF1)
 						database.sendTRGDFTRT = true;
 					break;
 				//optional - not used in JCC so skip for now



Mime
View raw message