Created
January 13, 2013 12:47
-
-
Save bazhenovc/4523912 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/build.d b/build.d | |
index f6d1053..aa1fd18 100644 | |
--- a/build.d | |
+++ b/build.d | |
@@ -665,8 +665,8 @@ foreach (arg; args[1 .. $]) { | |
isDebug = true; | |
continue; | |
} else { | |
- int pi1 = std.string.indexOf(arg, "["); | |
- int pi2 = std.string.lastIndexOf(arg, "]"); | |
+ auto pi1 = std.string.indexOf(arg, "["); | |
+ auto pi2 = std.string.lastIndexOf(arg, "]"); | |
if (-1 != pi1 && -1 != pi2 && pi1 < pi2) { | |
// Build task with argument. | |
auto name = arg[0 .. pi1]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment