PERFORCE change 28575 for review
Peter Wemm
peter at FreeBSD.org
Tue Apr 8 17:14:23 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=28575
Change 28575 by peter at peter_daintree on 2003/04/08 17:13:33
I dont freaking believe it. Work around a compiler bug.
gcc was compiling this as p[4294967295] instead of p[-1]
Affected files ...
.. //depot/projects/hammer/sys/kern/subr_scanf.c#3 edit
Differences ...
==== //depot/projects/hammer/sys/kern/subr_scanf.c#3 (text+ko) ====
@@ -498,7 +498,7 @@
}
goto match_failure;
}
- c = ((u_char *)p)[-1];
+ c = (((u_char *)p) - 1)[0];
if (c == 'x' || c == 'X') {
--p;
inp--;
More information about the p4-projects
mailing list