Skip to content

Commit

Permalink
Fix const
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelfj committed Mar 8, 2024
1 parent abce304 commit 74321d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/flatcc/portable/pmemaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ extern "C" {
/* Sometimes memcpy is a call, unnecessarily, so this is more likely to be optimized. */
static inline void mem_copy_word(void * restrict dest, const void * restrict src, size_t len)
{
const char *d = dest, *s = src;
char *d = dest;
const char *s = src;
while(len--) *d++ = *s++;
}
#endif
Expand Down

1 comment on commit 74321d0

@RafaelLaya
Copy link

@RafaelLaya RafaelLaya commented on 74321d0 Mar 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I noted this on the earlier commit. Looks like you found it too

Please sign in to comment.