Skip to content

Commit

Permalink
Fix double pointer dereference.
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswilddev committed Dec 27, 2020
1 parent 1f07a9c commit cca3a1b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
20 changes: 10 additions & 10 deletions example.c

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,16 +415,16 @@ ${frames.map(
).join(`
`)}
static const u8_t * ${name}_rgba[${frames.length}] = { ${frames
.map((_, index) => `&${name}_rgba_${index}`)
.map((_, index) => `${name}_rgba_${index}`)
.join(`, `)} };
const sprite_t ${name} = {
&${name}_widths,
&${name}_heights,
&${name}_x_offsets,
&${name}_y_offsets,
&${name}_durations,
&${name}_rgba,
${name}_widths,
${name}_heights,
${name}_x_offsets,
${name}_y_offsets,
${name}_durations,
${name}_rgba,
${frames.length}
};
Expand All @@ -439,7 +439,7 @@ ${tags.map(
${tags.map(
(tag) => `const sprite_animation_t ${tag.name} = {
&${name},
&${tag.name}_indices,
${tag.name}_indices,
${tag.indices.length},
${tag.duration}
};`
Expand Down

0 comments on commit cca3a1b

Please sign in to comment.