[jruby-joni] 24/279: Prevent int/byte conversion.

Hideki Yamane henrich at moszumanska.debian.org
Mon Nov 16 11:26:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

henrich pushed a commit to branch debian/sid
in repository jruby-joni.

commit 2706b06806c460b135904cd9a9eebd0d492efa1f
Author: Marcin Mielżyński <lopx at gazeta.pl>
Date:   Wed Jun 4 21:25:03 2008 +0000

    Prevent int/byte conversion.
    
    git-svn-id: http://svn.codehaus.org/jruby/joni/trunk@6892 961051c9-f516-0410-bf72-c9f7e237a7b7
---
 src/org/joni/encoding/Encoding.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/org/joni/encoding/Encoding.java b/src/org/joni/encoding/Encoding.java
index d2783ec..bac4a2d 100644
--- a/src/org/joni/encoding/Encoding.java
+++ b/src/org/joni/encoding/Encoding.java
@@ -404,11 +404,11 @@ public abstract class Encoding {
         return code < 128; 
     }
     
-    public static int asciiToLower(int c) {
+    public static byte asciiToLower(int c) {
         return AbstractEncoding.AsciiToLowerCaseTable[c];
     }
     
-    public static int asciiToUpper(int c) {
+    public static byte asciiToUpper(int c) {
         return AbstractEncoding.AsciiToUpperCaseTable[c];
     }
     

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-joni.git



More information about the pkg-java-commits mailing list