Commit d9bd15e5 authored by Oleksandr Dmytrenko's avatar Oleksandr Dmytrenko

wrong conversion fix

error: invalid conversion from 'int64_t {aka long int}' to 'CborError'

Change-Id: Ifbc8e51104fe5af0904b74a927179347e2207073
Signed-off-by: default avatarOleksandr Dmytrenko <o.dmytrenko@samsung.com>
parent c6f0105b
......@@ -55,12 +55,12 @@ extern "C"
* Macro to verify the validity of cbor operation or out of memory condition
*/
#define VERIFY_CBOR_SUCCESS_OR_OUT_OF_MEMORY(log_tag, err, log_message) \
if ((CborNoError != (err)) && !(CborErrorOutOfMemory & (err))) \
if ((CborNoError != (CborError)(err)) && !(CborErrorOutOfMemory & (CborError)(err))) \
{ \
if ((log_tag) && (log_message)) \
{ \
OIC_LOG_V(ERROR, (log_tag), "%s with cbor error: \'%s\'.", \
(log_message), (cbor_error_string(err))); \
(log_message), (cbor_error_string((CborError)err))); \
} \
goto exit; \
} \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment