X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstnmem.c;h=80a2e56d5a005c3de28903e0dacd45a37abc344f;hb=055f23ee3692349a03f681ef1a0d5fd70c0cc770;hp=606c67697f2ca33be4ba34c313b81c9c9b063e2b;hpb=379504a233e3e2cc85bca1e7b6d864f1395aec7c;p=yaz-moved-to-github.git diff --git a/test/tstnmem.c b/test/tstnmem.c index 606c676..80a2e56 100644 --- a/test/tstnmem.c +++ b/test/tstnmem.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ @@ -28,13 +28,13 @@ void tst(void) { 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 - if (sizeof(long long) >= j) + if ((int) sizeof(long long) >= j) *(long long*) cp = 123L; #endif - if (sizeof(double) >= j) + if ((int) sizeof(double) >= j) *(double*) cp = 12.2; }