Skip to content

Commit

Permalink
Merge pull request #43 from schveiguy/fixtempstringusage
Browse files Browse the repository at this point in the history
No reason to specify default radix
  • Loading branch information
schveiguy authored Jul 26, 2020
2 parents 6c93762 + 30e6ff9 commit ccc83f7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project('io', 'd', default_options: ['optimization=3'], version: '0.3.0', license: 'BSL-1.0' )
project('io', 'd', default_options: ['optimization=3'], version: '0.3.1', license: 'BSL-1.0' )
common_project_arguments = ['-release'] #, '--d-debug'
add_project_arguments(common_project_arguments, language: 'd')

Expand Down
2 changes: 1 addition & 1 deletion src/std/io/exception.d
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ protected:
import core.internal.string : signedToTempString;

sink("(error=");
sink(signedToTempString(errno, 10));
sink(signedToTempString(errno));
sink(")");
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/std/io/net/addr.d
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ struct SocketAddrIPv4

ip.toString(r);
r.put(":");
r.put(unsignedToTempString(port, 10)[]);
r.put(unsignedToTempString(port)[]);
}

///
Expand Down Expand Up @@ -461,7 +461,7 @@ struct SocketAddrIPv6
r.put("[");
ip.toString(r);
r.put("]:");
r.put(unsignedToTempString(port, 10)[]);
r.put(unsignedToTempString(port)[]);
}

///
Expand Down
2 changes: 1 addition & 1 deletion src/std/io/net/dns.d
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ protected:
import core.internal.string : signedToTempString;

sink("(error=");
sink(signedToTempString(gaiError, 10));
sink(signedToTempString(gaiError));
sink(")");
}

Expand Down
4 changes: 2 additions & 2 deletions src/std/io/net/tcp.d
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct TCP
import core.internal.string : unsignedToTempString;

auto tp = () @trusted{
return tempCString(unsignedToTempString(port, 10)[]);
return tempCString(unsignedToTempString(port)[]);
}();
auto sock = Socket.resolveBind(tempCString(hostname)[], tp[], SocketType.stream);
sock.listen(backlog);
Expand Down Expand Up @@ -128,7 +128,7 @@ struct TCP
import core.internal.string : unsignedToTempString;

auto tp = () @trusted{
return tempCString(unsignedToTempString(port, 10)[]);
return tempCString(unsignedToTempString(port)[]);
}();
auto sock = Socket.resolveConnect(tempCString(hostname)[], tp[], SocketType.stream);
return TCP(sock.move);
Expand Down
4 changes: 2 additions & 2 deletions src/std/io/net/udp.d
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct UDP
import core.internal.string : unsignedToTempString;

auto tp = () @trusted{
return tempCString(unsignedToTempString(port, 10)[]);
return tempCString(unsignedToTempString(port)[]);
}();
auto sock = Socket.resolveBind(tempCString(hostname)[], tp[], SocketType.dgram);
return UDP(sock.move);
Expand Down Expand Up @@ -154,7 +154,7 @@ struct UDP
import core.internal.string : unsignedToTempString;

auto tp = () @trusted{
return tempCString(unsignedToTempString(port, 10)[]);
return tempCString(unsignedToTempString(port)[]);
}();
auto sock = Socket.resolveConnect(tempCString(hostname)[], tp[], SocketType.dgram);
return UDP(sock.move);
Expand Down

0 comments on commit ccc83f7

Please sign in to comment.