In the class com.objfac.prebop.Expression.java, the
method makeLit(int) has a bug.
The position 'fPos' has to be incremented if it points
to a quote!
private Term makeLit(int c) throws PreprocessorError {
int quote = c;
StringBuffer buf = new StringBuffer();
while (fPos < fEnd && fBuf[fPos] != quote) {
buf.append((char)fBuf[fPos++]);
}
if (fPos == fEnd) {
return error("Unterminated string in expression ",
fBuf);
// added code starts here
} else if (fBuf[fPos] == quote) {
fPos++;
}
return new StringConstant(buf.toString());
}
Regards,
Pierce
ps.shah@datacomm.ch
Nobody/Anonymous ( nobody ) - 2004-08-19 14:12
5
Open
None
Nobody/Anonymous
None
None
Public
|
Date: 2006-02-09 15:50 Logged In: NO |
| Filename | Description | Download |
|---|---|---|
| Expression.java | Expression.java | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| File Added | 98408: Expression.java | 2004-08-19 14:12 | nobody |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use