--- /URLCodec.java	2023-07-05 02:58:57.198052847 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/net/URLCodec.java	2023-07-05 02:58:57.202052848 +0200
@@ -120,7 +120,7 @@
         
         ByteArrayOutputStream buffer = new ByteArrayOutputStream(); 
         for (int i = 0; i < bytes.length; i++) {
-            int b = bytes[i];
+long  b = bytes[i];
             if (b < 0) {
                 b = 256 + b;
             }
