Commit dfc6dd1
committed
Fix page index type safety in PromptEditorDlg
Changed the page index variable from `int` to `size_t` to match the return type of `GetPageCount()`. This eliminates the unnecessary `>= 0` check, as `size_t` is unsigned and cannot hold negative values. The change improves type safety and prevents potential issues with signed/unsigned comparison.
* Plugin/CustomControls/PromptEditorDlg.cpp
**Generated by CodeLite**
Signed-off-by: Eran Ifrah <eran@codelite.org>1 parent 5eb079c commit dfc6dd1
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
| 122 | + | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
0 commit comments