1
0
Fork 0

be wrong instead of throwing exemptions

This commit is contained in:
Kevin Matz 2023-05-15 10:50:59 -04:00
parent e638b09be6
commit 745222cbf9
1 changed files with 0 additions and 3 deletions

View File

@ -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;
}