initialize bencoded ints with zero when constructed
This commit is contained in:
parent
5383854768
commit
1dc8c1c127
|
@ -519,7 +519,7 @@ namespace {
|
||||||
switch (t)
|
switch (t)
|
||||||
{
|
{
|
||||||
case int_t:
|
case int_t:
|
||||||
new (&data) integer_type;
|
new (&data) integer_type(0);
|
||||||
break;
|
break;
|
||||||
case string_t:
|
case string_t:
|
||||||
new (&data) string_type;
|
new (&data) string_type;
|
||||||
|
|
Loading…
Reference in New Issue