projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add casts for signed/unsigned ints
[yaz-moved-to-github.git]
/
test
/
tstnmem.c
diff --git
a/test/tstnmem.c
b/test/tstnmem.c
index
7267744
..
80a2e56
100644
(file)
--- a/
test/tstnmem.c
+++ b/
test/tstnmem.c
@@
-28,13
+28,13
@@
void tst(void)
{
cp = (char *) nmem_malloc(n, j);
YAZ_CHECK(cp);
{
cp = (char *) nmem_malloc(n, j);
YAZ_CHECK(cp);
- if (sizeof(long) >= j)
+ if ((int) sizeof(long) >= j)
*(long*) cp = 123L;
#if HAVE_LONG_LONG
*(long*) cp = 123L;
#if HAVE_LONG_LONG
- if (sizeof(long long) >= j)
+ if ((int) sizeof(long long) >= j)
*(long long*) cp = 123L;
#endif
*(long long*) cp = 123L;
#endif
- if (sizeof(double) >= j)
+ if ((int) sizeof(double) >= j)
*(double*) cp = 12.2;
}
*(double*) cp = 12.2;
}