Remove incorrect use of M_ASSUME by assert
This commit is contained in:
1 parent
6f761091cc
commit
22ce001f03
3 files changed
+31
-31
No files matched your search
+1
-1
@@ -67,7 +67,7 @@ m_serial_json_write_float(m_serial_write_t serial, const long double data, const
|
||||
static inline m_serial_return_code_t
|
||||
m_serial_json_write_string(m_serial_write_t serial, const char data[], size_t length)
|
||||
{
|
||||
STRINGI_ASSUME(length == strlen(data) );
|
||||
STRINGI_ASSERT_SLOW(length == strlen(data) );
|
||||
FILE *f = (FILE *)serial->data[0].p;
|
||||
assert(f != NULL && data != NULL);
|
||||
/* HACK: Build dummy string to reuse string_out_str */
|
||||
|
||||
Reference in new issue
Block a user