aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/debugger.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-11-11 11:20:08 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-11-11 13:31:17 +0100
commit8e58d37f2e15ac8540377148e55ed08a039aadb6 (patch)
tree799dd1f30d375ac8cdeae196fceec9d2ad0f134a /src/nvim/debugger.c
parentc4ad15ae324f6460c683a64c44d65e693e1f39bb (diff)
downloadrneovim-8e58d37f2e15ac8540377148e55ed08a039aadb6.tar.gz
rneovim-8e58d37f2e15ac8540377148e55ed08a039aadb6.tar.bz2
rneovim-8e58d37f2e15ac8540377148e55ed08a039aadb6.zip
refactor: remove redundant casts
Diffstat (limited to 'src/nvim/debugger.c')
-rw-r--r--src/nvim/debugger.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/debugger.c b/src/nvim/debugger.c
index 755579a3bc..2d27ae4f0a 100644
--- a/src/nvim/debugger.c
+++ b/src/nvim/debugger.c
@@ -756,8 +756,8 @@ linenr_T dbg_find_breakpoint(bool file, char *fname, linenr_T after)
/// @returns true if profiling is on for a function or sourced file.
bool has_profiling(bool file, char *fname, bool *fp)
{
- return debuggy_find(file, fname, (linenr_T)0, &prof_ga, fp)
- != (linenr_T)0;
+ return debuggy_find(file, fname, 0, &prof_ga, fp)
+ != 0;
}
/// Common code for dbg_find_breakpoint() and has_profiling().
@@ -776,7 +776,7 @@ static linenr_T debuggy_find(bool file, char *fname, linenr_T after, garray_T *g
// Return quickly when there are no breakpoints.
if (GA_EMPTY(gap)) {
- return (linenr_T)0;
+ return 0;
}
// Replace K_SNR in function name with "<SNR>".
@@ -799,7 +799,7 @@ static linenr_T debuggy_find(bool file, char *fname, linenr_T after, garray_T *g
// while matching should abort it.
prev_got_int = got_int;
got_int = false;
- if (vim_regexec_prog(&bp->dbg_prog, false, name, (colnr_T)0)) {
+ if (vim_regexec_prog(&bp->dbg_prog, false, name, 0)) {
lnum = bp->dbg_lnum;
if (fp != NULL) {
*fp = bp->dbg_forceit;