basic/source/runtime/methods.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e18e497f657192815443921726c50bda19a32427
Author:     Simon Chenery <[email protected]>
AuthorDate: Tue Jan 20 22:33:03 2026 +0100
Commit:     Xisco Fauli <[email protected]>
CommitDate: Wed Jan 21 10:12:25 2026 +0100

    tdf#154285 Check too many arguments to BASIC INT function
    
    Change-Id: Ia0d71efc326fcfad13bc8edc9d15d5ef491db265
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197702
    Reviewed-by: Mike Kaganski <[email protected]>
    Tested-by: Jenkins
    (cherry picked from commit 58da9d878db744f871072ef85f643a39e3c71a1f)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197713
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index a945cd610238..7f7f8623d5ac 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -938,7 +938,7 @@ void SbRtl_InStrRev(StarBASIC *, SbxArray & rPar, bool)
 
 void SbRtl_Int(StarBASIC *, SbxArray & rPar, bool)
 {
-    if (rPar.Count() < 2)
+    if (rPar.Count() != 2)
         return StarBASIC::Error( ERRCODE_BASIC_BAD_ARGUMENT );
 
     SbxVariableRef pArg = rPar.Get(1);

Reply via email to