Re: [PHP4BETA] cvs: php4 /ext/standard/ Makefile.in basic_functions.c levenshtein.c php_string.h
[email protected] (Sascha Schumann)
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <[email protected]> |
> 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