Re: [PHP4BETA] cvs: php4 /ext/standard/ Makefile.in basic_functions.c levenshtein.c php_string.h
| From: | Sascha Schumann | Date: | Tue, 23 May 2000 20:26:52 +0000 |
| Subject: | Re: [PHP4BETA] cvs: php4 /ext/standard/ Makefile.in basic_functions.c levenshtein.c php_string.h | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-15594@lists.php.net to get a copy of this message | ||
> int calc_levdist(const char *s1, const char *s2) /* faster, but obfuscated */
> {
...
> /* swap if l2 longer than l1 */
> if(l1<l2) {
> (long)s1 ^= (long)s2; (long)s2 ^= (long)s1; (long)s1 ^= (long)s2;
s1 and s2 are declared const. That translates to read-only in plain
English. Either leave the variables untouched, or don't declare them
const.
Please fix it ASAP, because currently the build is broken on most non-gcc
compilers.
- Sascha