From 30e6ff9948acda5f10d2f7574c2ac47c1634f30d Mon Sep 17 00:00:00 2001 From: Steven Schveighoffer Date: Sun, 26 Jul 2020 13:59:55 -0400 Subject: [PATCH] No reason to specify default radix --- meson.build | 2 +- src/std/io/exception.d | 2 +- src/std/io/net/addr.d | 4 ++-- src/std/io/net/dns.d | 2 +- src/std/io/net/tcp.d | 4 ++-- src/std/io/net/udp.d | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/meson.build b/meson.build index f12ae3a..b1c9463 100644 --- a/meson.build +++ b/meson.build @@ -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') diff --git a/src/std/io/exception.d b/src/std/io/exception.d index a7f1786..d5f4949 100644 --- a/src/std/io/exception.d +++ b/src/std/io/exception.d @@ -120,7 +120,7 @@ protected: import core.internal.string : signedToTempString; sink("(error="); - sink(signedToTempString(errno, 10)); + sink(signedToTempString(errno)); sink(")"); } } diff --git a/src/std/io/net/addr.d b/src/std/io/net/addr.d index 059f1c3..a6e00c5 100644 --- a/src/std/io/net/addr.d +++ b/src/std/io/net/addr.d @@ -348,7 +348,7 @@ struct SocketAddrIPv4 ip.toString(r); r.put(":"); - r.put(unsignedToTempString(port, 10)[]); + r.put(unsignedToTempString(port)[]); } /// @@ -461,7 +461,7 @@ struct SocketAddrIPv6 r.put("["); ip.toString(r); r.put("]:"); - r.put(unsignedToTempString(port, 10)[]); + r.put(unsignedToTempString(port)[]); } /// diff --git a/src/std/io/net/dns.d b/src/std/io/net/dns.d index 4788156..52b296b 100644 --- a/src/std/io/net/dns.d +++ b/src/std/io/net/dns.d @@ -115,7 +115,7 @@ protected: import core.internal.string : signedToTempString; sink("(error="); - sink(signedToTempString(gaiError, 10)); + sink(signedToTempString(gaiError)); sink(")"); } diff --git a/src/std/io/net/tcp.d b/src/std/io/net/tcp.d index f4fea20..4b18f62 100644 --- a/src/std/io/net/tcp.d +++ b/src/std/io/net/tcp.d @@ -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); @@ -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); diff --git a/src/std/io/net/udp.d b/src/std/io/net/udp.d index 6c71cbf..5193710 100644 --- a/src/std/io/net/udp.d +++ b/src/std/io/net/udp.d @@ -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); @@ -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);