Fix code comment error for function rt_memset().

This commit is contained in:
杨澄 2021-03-17 23:55:27 +08:00 committed by GitHub
parent 6de81af04c
commit 8836cb7895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -146,10 +146,10 @@ RT_WEAK void *rt_memset(void *s, int c, rt_ubase_t count)
if (!TOO_SMALL(count) && !UNALIGNED(s)) if (!TOO_SMALL(count) && !UNALIGNED(s))
{ {
/* If we get this far, we know that n is large and m is word-aligned. */ /* If we get this far, we know that count is large and s is word-aligned. */
aligned_addr = (unsigned long *)s; aligned_addr = (unsigned long *)s;
/* Store D into each char sized location in BUFFER so that /* Store d into each char sized location in buffer so that
* we can set large blocks quickly. * we can set large blocks quickly.
*/ */
if (LBLOCKSIZE == 4) if (LBLOCKSIZE == 4)