@@ -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 */
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user