Skip to content

Instantly share code, notes, and snippets.

@bazhenovc
Created January 13, 2013 12:47
Show Gist options
  • Save bazhenovc/4523912 to your computer and use it in GitHub Desktop.
Save bazhenovc/4523912 to your computer and use it in GitHub Desktop.
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