Skip to content

Commit

Permalink
Merge pull request dlang#445 from denis-sh/patch-1
Browse files Browse the repository at this point in the history
Remove unsafe and unnecessary casting
  • Loading branch information
andralex committed Feb 20, 2012
2 parents 37631fc + 296de58 commit 558a7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/net/curl.d
Expand Up @@ -3341,7 +3341,7 @@ struct Curl
{
auto msgZ = curl_easy_strerror(code);
// doing the following (instead of just using std.conv.to!string) avoids 1 allocation
return format("%s on handle %s", cast(string) msgZ[0 .. core.stdc.string.strlen(msgZ)], handle);
return format("%s on handle %s", msgZ[0 .. core.stdc.string.strlen(msgZ)], handle);
}

private void throwOnStopped(string message = null)
Expand Down

0 comments on commit 558a7ad

Please sign in to comment.