Skip to content
Snippets Groups Projects
Commit 5c852898 authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

Fix be24_to_cpu function for big-endian systems

parent 7479ba22
No related branches found
No related tags found
1 merge request!34Update cmp_tool to version v0.13
......@@ -592,7 +592,11 @@ size_t size_of_a_sample(enum cmp_data_type data_type)
static uint32_t be24_to_cpu(uint32_t a)
{
#ifdef __LITTLE_ENDIAN
return be32_to_cpu(a) >> 8;
#else
return a;
#endif /* __LITTLE_ENDIAN */
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment