mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 00:24:11 -08:00
C: fix generation of relative path in 'include' directive
This commit is contained in:
parent
da22256c1f
commit
a1aa25afa0
|
@ -39,7 +39,7 @@ public abstract class IncludeManager {
|
||||||
while (true) {
|
while (true) {
|
||||||
int next = fileName.indexOf('/', commonIndex);
|
int next = fileName.indexOf('/', commonIndex);
|
||||||
if (next < 0 || next > currentFileName.length()
|
if (next < 0 || next > currentFileName.length()
|
||||||
|| !currentFileName.regionMatches(commonIndex, fileName, commonIndex, next - commonIndex)) {
|
|| !currentFileName.regionMatches(commonIndex, fileName, commonIndex, next - commonIndex + 1)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
commonIndex = next + 1;
|
commonIndex = next + 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user