mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:21:41 +03:00
clang-tidy: drop redundant casts
Found via `readability-redundant-casting`. Prone to false positives, not enabled. Ref: https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-casting.html Closes #20630
This commit is contained in:
parent
c07c3cac74
commit
8712fac111
29 changed files with 39 additions and 41 deletions
|
|
@ -1049,7 +1049,7 @@ static int formatf(void *userp, /* untouched by format(), just sent to the
|
|||
if(p.flags & FLAGS_LONG)
|
||||
*(long *)iptr->val.ptr = (long)done;
|
||||
else if(!(p.flags & FLAGS_SHORT))
|
||||
*(int *)iptr->val.ptr = (int)done;
|
||||
*(int *)iptr->val.ptr = done;
|
||||
else
|
||||
*(short *)iptr->val.ptr = (short)done;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue