Skip to content

Commit

Permalink
[clang][Interp] Specify Boolean conversion operartors as (u)int32
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Sep 29, 2022
1 parent 84f1df8 commit f927b71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/AST/Interp/Boolean.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ class Boolean final {
Boolean operator-() const { return Boolean(V); }
Boolean operator~() const { return Boolean(true); }

explicit operator unsigned() const { return V; }
explicit operator int8_t() const { return V; }
explicit operator uint8_t() const { return V; }
explicit operator int16_t() const { return V; }
explicit operator uint16_t() const { return V; }
explicit operator int32_t() const { return V; }
explicit operator uint32_t() const { return V; }
explicit operator int64_t() const { return V; }
explicit operator uint64_t() const { return V; }
explicit operator int() const { return V; }
explicit operator bool() const { return V; }

APSInt toAPSInt() const {
Expand Down

0 comments on commit f927b71

Please sign in to comment.