be wrong instead of throwing exemptions
This commit is contained in:
parent
e638b09be6
commit
745222cbf9
|
@ -22,7 +22,6 @@
|
|||
SOFTWARE.
|
||||
*/
|
||||
#include "argument.h"
|
||||
#include <cassert>
|
||||
#include "message.h"
|
||||
|
||||
namespace OSC {
|
||||
|
@ -42,7 +41,6 @@ size_t string::streamSize() const
|
|||
auto length = value.size(); // character count
|
||||
length += 1; // null terminated
|
||||
length += length % 4 ? 4 - (length % 4) : 0; // padding bytes
|
||||
assert(0 == length % 4);
|
||||
return length;
|
||||
}
|
||||
|
||||
|
@ -63,7 +61,6 @@ size_t blob::streamSize() const
|
|||
{
|
||||
auto length = 4 + value.size(); // length + byte count
|
||||
length += length % 4 ? 4 - (length % 4) : 0; // padding bytes
|
||||
assert(0 == length % 4);
|
||||
return length;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue