Skip to content

Commit

Permalink
Merge pull request #1564 from berryzplus/feature/cast_to_int
Browse files Browse the repository at this point in the history
StaticString::Length()の戻り値をintにキャストする
  • Loading branch information
berryzplus committed Mar 6, 2021
2 parents 0d43052 + 19851da commit 27d2348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sakura_core/util/StaticType.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class StaticString{
Me& operator = (const CHAR_TYPE* src){ Assign(src); return *this; }

//各種メソッド
int Length() const{ return auto_strlen(m_szData); }
int Length() const { return static_cast<int>(auto_strnlen(m_szData, BUFFER_COUNT)); }

private:
CHAR_TYPE m_szData[N_BUFFER_COUNT];
Expand Down

0 comments on commit 27d2348

Please sign in to comment.