Skip to content

Commit

Permalink
fix: amend return *::explicit operator bool()
Browse files Browse the repository at this point in the history
  • Loading branch information
yulon committed Sep 8, 2023
1 parent 98b04de commit 15203f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/rua/string/codec/stream/uni.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class l2u_reader : public stream_base {
}

virtual operator bool() const {
return $lr;
return !!$lr;
}

virtual ssize_t read(bytes_ref p) {
Expand All @@ -49,7 +49,7 @@ class u2l_writer : public stream_base {
}

virtual operator bool() const {
return $lw;
return !!$lw;
}

virtual ssize_t write(bytes_view p) {
Expand Down

0 comments on commit 15203f7

Please sign in to comment.