mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
parent
a229d0d08f
commit
77d6960d24
1 changed files with 7 additions and 0 deletions
|
|
@ -103,6 +103,10 @@ void MD5Hash::process(const uint8_t *data /*[64]*/)
|
|||
static const int w = 1;
|
||||
|
||||
if (*((const uint8_t *)&w)) /* dynamic little-endian */ {
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wnull-pointer-subtraction"
|
||||
#endif
|
||||
/*
|
||||
* On little-endian machines, we can process properly aligned
|
||||
* data without copying it.
|
||||
|
|
@ -116,6 +120,9 @@ void MD5Hash::process(const uint8_t *data /*[64]*/)
|
|||
memcpy(xbuf, data, 64);
|
||||
X = xbuf;
|
||||
}
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
}
|
||||
else { /* dynamic big-endian */
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue