We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1222b9f commit 1c18e11Copy full SHA for 1c18e11
src/google/protobuf/encoding.d
@@ -61,6 +61,14 @@ unittest
61
assert((-1L).toProtobuf!(Wire.zigzag).array == [0x01]);
62
}
63
64
+nothrow unittest
65
+{
66
+ cast(void)toProtobuf(byte(1));
67
+ cast(void)toProtobuf(short(1));
68
+ cast(void)toProtobuf(int(1));
69
+ cast(void)toProtobuf(long(1));
70
+}
71
+
72
auto toProtobuf(T)(T value)
73
if (isFloatingPoint!T)
74
{
src/google/protobuf/internal.d
@@ -10,7 +10,7 @@ struct Varint
10
private ubyte index;
11
private ubyte _length;
12
13
- this(long value)
+ this(long value) nothrow
14
out { assert(_length > 0); }
15
do
16
0 commit comments