mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 16:49:23 +00:00
* include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
This commit is contained in:
1 parent
ae558c2ccf
commit
8a913e664e
2 files changed
+8
-3
No files matched your search
@@ -1,3 +1,7 @@
|
||||
2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
|
||||
|
||||
2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Enable -Wformat=2 if it's supported.
|
||||
|
||||
@@ -293,9 +293,10 @@ grub_crypto_xor (void *out, const void *in1, const void *in2, grub_size_t size)
|
||||
}
|
||||
while (size >= sizeof (grub_uint64_t))
|
||||
{
|
||||
*(grub_uint64_t *) outptr
|
||||
= (*(const grub_uint64_t *) in1ptr
|
||||
^ *(const grub_uint64_t *) in2ptr);
|
||||
/* We've already checked that all pointers are aligned. */
|
||||
*(grub_uint64_t *) (void *) outptr
|
||||
= (*(const grub_uint64_t *) (const void *) in1ptr
|
||||
^ *(const grub_uint64_t *) (const void *) in2ptr);
|
||||
in1ptr += sizeof (grub_uint64_t);
|
||||
in2ptr += sizeof (grub_uint64_t);
|
||||
outptr += sizeof (grub_uint64_t);
|
||||
|
||||
Reference in new issue
Block a user