Skip to content

Commit

Permalink
Switch variable name away from macro
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
  • Loading branch information
InvincibleRMC committed Feb 22, 2025
1 parent 36e65b6 commit ecb8450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pybind11/cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -1362,8 +1362,8 @@ str_attr_accessor object_api<D>::attr_with_type_hint(const char *key) const {

const char *text = make_caster<T>::name.text;

size_t _ = 0;
ann[key] = generate_signature(text, 0, 0, _, _, true);
size_t unused = 0;
ann[key] = generate_signature(text, 0, 0, unused, unused, true);
return {derived(), key};
}

Expand Down

0 comments on commit ecb8450

Please sign in to comment.