Commit 23f4ad6
committed
Fix comparison between signed and unsigned integer types
Cast `lines_to_find.size()` to `int` in the hunk validation loop to resolve
a compiler warning about comparing signed (`hunk_line_number`) and unsigned
(`size_t`) integer types. This ensures the loop condition is type-safe without
changing the control flow logic.
* Plugin/Diff: Type safety improvement in patch application
**Generated by CodeLite**
Signed-off-by: Eran Ifrah <eran@codelite.org>1 parent 672c9e4 commit 23f4ad6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
0 commit comments