projects
/
libusual.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efad8f7
)
test_fileutil: fix signedness warnings
author
Marko Kreen
<markokr@gmail.com>
Tue, 5 Jun 2012 11:37:48 +0000
(14:37 +0300)
committer
Marko Kreen
<markokr@gmail.com>
Tue, 5 Jun 2012 11:37:48 +0000
(14:37 +0300)
test/test_fileutil.c
patch
|
blob
|
blame
|
history
diff --git
a/test/test_fileutil.c
b/test/test_fileutil.c
index ef1a726597572c360293671044560d8cdde8c6bd..0e93c30e1f572d0c3b4b6f1dd7d2732dabddafb3 100644
(file)
--- a/
test/test_fileutil.c
+++ b/
test/test_fileutil.c
@@
-35,9
+35,9
@@
static void test_fsize(void *p)
{
int_check(createfile(), 1);
- tt_assert(file_size(filename) == strlen(fdata));
- tt_assert(file_size(filename) == sizeof(fdata) - 1);
- tt_assert(file_size("nonexist") ==-1);
+ tt_assert(file_size(filename) ==
(int)
strlen(fdata));
+ tt_assert(file_size(filename) ==
(int)
sizeof(fdata) - 1);
+ tt_assert(file_size("nonexist") ==
-1);
end:;
}