mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-08 12:40:49 -08:00
Avoid "warning c4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)" from microsoft visual c.
Copied from Perforce Change: 191138 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
dd8f8c0906
commit
a69a06ee56
1 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/* testlib.c: TEST LIBRARY
|
||||
*
|
||||
* $Id$
|
||||
* Copyright (c) 2001-2014 Ravenbrook Limited. See end of file for license.
|
||||
* Copyright (c) 2001-2016 Ravenbrook Limited. See end of file for license.
|
||||
* Portions copyright (C) 2002 Global Graphics Software.
|
||||
*
|
||||
* .purpose: A library of functions that may be of use to unit tests.
|
||||
|
|
@ -238,8 +238,8 @@ size_t rnd_align(size_t min, size_t max)
|
|||
unsigned log2min = sizelog2(min);
|
||||
unsigned log2max = sizelog2(max);
|
||||
Insist(min <= max);
|
||||
Insist(1uL << log2min == min);
|
||||
Insist(1uL << log2max == max);
|
||||
Insist((size_t)1 << log2min == min);
|
||||
Insist((size_t)1 << log2max == max);
|
||||
if (log2min < log2max)
|
||||
return min << (rnd() % (log2max - log2min + 1));
|
||||
else
|
||||
|
|
@ -433,7 +433,7 @@ void testlib_init(int argc, char *argv[])
|
|||
|
||||
/* C. COPYRIGHT AND LICENSE
|
||||
*
|
||||
* Copyright (c) 2001-2014 Ravenbrook Limited <http://www.ravenbrook.com/>.
|
||||
* Copyright (c) 2001-2016 Ravenbrook Limited <http://www.ravenbrook.com/>.
|
||||
* All rights reserved. This is an open source license. Contact
|
||||
* Ravenbrook for commercial licensing options.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue