size_t使うように
This commit is contained in:
1 parent
fbf8c884b0
commit
91c9d003a9
4 files changed
+5
-5
No files matched your search
+2
-2
@@ -387,9 +387,9 @@ class Parser
|
||||
wstring getLine(SourceLocation loc)
|
||||
{
|
||||
import std.string;
|
||||
int mae = code[0 .. loc.pos2].lastIndexOf('\n');
|
||||
auto mae = code[0 .. loc.pos2].lastIndexOf('\n');
|
||||
mae++;
|
||||
int ushiro = code[mae..$].indexOf('\n');
|
||||
auto ushiro = code[mae..$].indexOf('\n');
|
||||
if(ushiro == -1) ushiro = code.length;
|
||||
return code[mae .. mae + ushiro];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user