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

New commits:
commit 50cf101df5d89d7104e185b0adfcff45a2eb76dd
Author:     Simon Chenery <[email protected]>
AuthorDate: Sat Mar 29 22:02:11 2025 +0100
Commit:     Ilmari Lauhakangas <[email protected]>
CommitDate: Thu Apr 24 06:45:35 2025 +0200

    tdf#145614 Convert #define JMP_TABLE_SIZE to constexpr
    
    Change-Id: Iedc40d790a4822d0cb65480e1e4b64439de39db5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183496
    Tested-by: Jenkins
    Tested-by: Ilmari Lauhakangas <[email protected]>
    Reviewed-by: Ilmari Lauhakangas <[email protected]>

diff --git a/basic/source/comp/loops.cxx b/basic/source/comp/loops.cxx
index a7e818dfd2bc..35a4cafad168 100644
--- a/basic/source/comp/loops.cxx
+++ b/basic/source/comp/loops.cxx
@@ -46,7 +46,7 @@ void SbiParser::If()
         // At the end of each block a jump to ENDIF must be inserted,
         // so that the condition is not evaluated again at ELSEIF.
         // The table collects all jump points.
-#define JMP_TABLE_SIZE 100
+        constexpr sal_uInt16 JMP_TABLE_SIZE = 100;
         sal_uInt32 pnJmpToEndLbl[JMP_TABLE_SIZE];   // 100 ELSEIFs allowed
         sal_uInt16 iJmp = 0;                        // current table index
 

Reply via email to