From 066d0dab3b6a638dd24d1dd29e88b7e97828e465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Fri, 8 Nov 2024 10:40:20 +0100 Subject: [PATCH] Update embedded lpSolve To get rid of compilation warning on Windows + R-devel. --- src/library/lpSolve/DESCRIPTION | 13 +++++++++---- src/library/lpSolve/src/lusol.c | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/library/lpSolve/DESCRIPTION b/src/library/lpSolve/DESCRIPTION index 5fe3dc7d9..fc77bcf9a 100644 --- a/src/library/lpSolve/DESCRIPTION +++ b/src/library/lpSolve/DESCRIPTION @@ -1,8 +1,10 @@ Package: lpSolve -Version: 5.6.20.9000 +Version: 5.6.21.9000 Title: Interface to 'Lp_solve' v. 5.5 to Solve Linear/Integer Programs -Author: Michel Berkelaar and others -Maintainer: Gábor Csárdi +Authors@R: c( + person("Gábor", "Csárdi", , "csardi.gabor@gmail.com", role = "cre"), + person("Michel", "Berkelaar", role = "aut") + ) Description: Lp_solve is freely available (under LGPL 2) software for solving linear, integer and mixed integer programs. In this implementation we supply a "wrapper" function in C and some R @@ -14,4 +16,7 @@ URL: https://github.com/gaborcsardi/lpSolve BugReports: https://github.com/gaborcsardi/lpSolve/issues Encoding: UTF-8 NeedsCompilation: yes -Packaged: 2024-09-05 07:46:18 UTC; gaborcsardi +Packaged: 2024-11-08 09:40:13 UTC; gaborcsardi +Author: Gábor Csárdi [cre], + Michel Berkelaar [aut] +Maintainer: Gábor Csárdi diff --git a/src/library/lpSolve/src/lusol.c b/src/library/lpSolve/src/lusol.c index 7382b45ac..7035063b0 100644 --- a/src/library/lpSolve/src/lusol.c +++ b/src/library/lpSolve/src/lusol.c @@ -55,7 +55,7 @@ /* LUSOL Object creation and destruction */ -void *clean_realloc(void *oldptr, int width, int newsize, int oldsize) +void *clean_realloc(void *oldptr, int width, size_t newsize, int oldsize) { newsize *= width; oldsize *= width;