You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@apache.org on 2001/02/07 14:10:02 UTC
cvs commit: apache-1.3/src/modules/proxy proxy_util.c
martin 01/02/07 05:10:01
Modified: src/modules/proxy proxy_util.c
Log:
Tiny speed improvement which should not break anything
Revision Changes Path
1.96 +3 -3 apache-1.3/src/modules/proxy/proxy_util.c
Index: proxy_util.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/modules/proxy/proxy_util.c,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -u -r1.95 -r1.96
--- proxy_util.c 2001/01/15 17:05:30 1.95
+++ proxy_util.c 2001/02/07 13:09:59 1.96
@@ -117,10 +117,10 @@
x[2] = '0' + i;
#else /*CHARSET_EBCDIC*/
static const char ntoa[] = { "0123456789ABCDEF" };
- ch &= 0xFF;
+ ch = os_toascii[ch & 0xFF];
x[0] = '%';
- x[1] = ntoa[(os_toascii[ch]>>4)&0x0F];
- x[2] = ntoa[os_toascii[ch]&0x0F];
+ x[1] = ntoa[(ch>>4)&0x0F];
+ x[2] = ntoa[ch&0x0F];
x[3] = '\0';
#endif /*CHARSET_EBCDIC*/
}