Skip to content

Commit

Permalink
Apply code-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
curioyang authored and github-actions[bot] committed Apr 30, 2024
1 parent 17865e3 commit 4e500a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Native/include/nncase/runtime/char_array_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ class char_array_buffer : public std::streambuf {
return current_ - begin_;
}

std::streamsize xsgetn(char_type* s, std::streamsize count) override {
std::streamsize available = static_cast<std::streamsize>(end_ - current_);
std::streamsize xsgetn(char_type *s, std::streamsize count) override {
std::streamsize available =
static_cast<std::streamsize>(end_ - current_);
std::streamsize n = (count > available) ? available : count;
if (n > 0) {
traits_type::copy(s, current_, static_cast<size_t>(n));
Expand Down

0 comments on commit 4e500a8

Please sign in to comment.