* Simple byteorder handling.
*
* Copyright (C) 1992-1995 Andrew Tridgell
- * Copyright (C) 2007-2019 Wayne Davison
+ * Copyright (C) 2007-2022 Wayne Davison
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
static inline int64
IVAL64(const char *buf, int pos)
{
- return IVALu(buf, pos) | (int64)IVALu(buf, pos + 4) << 32;
+ return IVALu((uchar*)buf, pos) | (int64)IVALu((uchar*)buf, pos + 4) << 32;
}
static inline void
SIVAL64(char *buf, int pos, int64 val)
{
- SIVALu(buf, pos, val);
- SIVALu(buf, pos + 4, val >> 32);
+ SIVALu((uchar*)buf, pos, val);
+ SIVALu((uchar*)buf, pos + 4, val >> 32);
}
#else /* !CAREFUL_ALIGNMENT */
{
SIVALu((uchar*)buf, pos, val);
}
-