little correction to parse_type

This commit is contained in:
pommicket 2022-01-24 14:43:51 -05:00
parent 5167a60347
commit 448a1ec4b5
2 changed files with 3 additions and 2 deletions

View file

@ -459,7 +459,8 @@ function parse_type_to
if c == 0 goto bad_type if c == 0 goto bad_type
n = type_length(c) n = type_length(c)
c += types c += types
out = memcpy(out, c, n) memcpy(out, c, n)
out += n
goto base_type_done goto base_type_done
:skip_struct_union_enum :skip_struct_union_enum

View file

@ -280,7 +280,7 @@ function memccpy
memccpy_advance(&dest, &src, terminator) memccpy_advance(&dest, &src, terminator)
return dest return dest
; just like C ; like C, but returns 0
function memcpy function memcpy
argument dest argument dest
argument src argument src