[Pkg-voip-commits] [bctoolbox] 47/57: fix warning again (for centos7)
daniel at gnoutcheff.name
daniel at gnoutcheff.name
Thu Mar 30 04:31:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
gnoutchd-guest pushed a commit to branch debian/sid
in repository bctoolbox.
commit 448d0f0ba93f53968fa7d0926fdfe504ea74db89
Author: Simon Morlat <simon.morlat at linphone.org>
Date: Fri Feb 3 22:59:17 2017 +0100
fix warning again (for centos7)
---
src/tester.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/tester.c b/src/tester.c
index 13c457a..380e046 100644
--- a/src/tester.c
+++ b/src/tester.c
@@ -310,7 +310,7 @@ static void test_complete_message_handler(const CU_pTest pTest, const CU_pSuite
*/
if (max_vm_kb) {
struct mallinfo minfo = mallinfo();
- if (minfo.uordblks > max_vm_kb * 1024) {
+ if ((size_t)minfo.uordblks > max_vm_kb * 1024) {
bc_tester_printf(
bc_printf_verbosity_error,
"The program exceeded the maximum amount of memory allocatable (%i bytes), aborting now.\n",
@@ -526,7 +526,7 @@ void bc_tester_init(void (*ftester_printf)(int level, const char *format, va_lis
void bc_tester_set_max_vm(long amax_vm_kb) {
#ifdef __linux
- max_vm_kb = amax_vm_kb;
+ max_vm_kb = (size_t)amax_vm_kb;
bc_tester_printf(bc_printf_verbosity_info, "Maximum virtual memory space set to %li kilo bytes", max_vm_kb);
#else
bc_tester_printf(bc_printf_verbosity_error, "Maximum virtual memory space setting is only implemented on Linux.");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/bctoolbox.git
More information about the Pkg-voip-commits
mailing list