/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
size_t i;
for (i = sizeof(uval); i > 0; )
{
- tmp[--i] = uval;
+ tmp[--i] = (unsigned char ) uval; /* only want lower 8 bits */
uval >>= 8;
}
for (i = 0; i < sizeof(uval)-1; i++)