Commit 5d025eb2 authored by Jukka Laitinen's avatar Jukka Laitinen Committed by Anup Patel
Browse files

lib: fix pointer of type 'void *' used in arithmetic



Using "void *" in arithmetic causes errors with strict compiler settings:
"error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]"

Avoid these by calculating on "char *" where 1-byte data size is assumed.

Signed-off-by: default avatarJukka Laitinen <jukkax@ssrc.tii.ae>
Reviewed-by: default avatarDong Du <Dd_nirvana@sjtu.edu.cn>
Reviewed-by: default avatarXiang W <wxjstz@126.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent fb688d9e
Supports Markdown
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