mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Assert on a bad construction.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <vector>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <cassert>
|
||||
|
||||
#include "types.h"
|
||||
|
||||
@@ -653,7 +654,10 @@ public:
|
||||
if (vch.size() == sizeof(pn))
|
||||
memcpy(pn, &vch[0], sizeof(pn));
|
||||
else
|
||||
{
|
||||
assert(false);
|
||||
*this = 0;
|
||||
}
|
||||
}
|
||||
|
||||
base_uint160 to160() const;
|
||||
|
||||
Reference in New Issue
Block a user