Skip to content

Commit

Permalink
Fix compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
reyoung committed Jan 17, 2017
1 parent 741637e commit 8aefc30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions paddle/utils/Status.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ class Status final : public std::exception {
*/
template <typename... ARGS>
inline void setByPrintf(const char* fmt, ARGS... args) noexcept {
constexpr size_t bufferSize = 4096;
char buffer[bufferSize];
snprintf(buffer, bufferSize, fmt, args...);
constexpr size_t kBufferSize = 4096;
char buffer[kBufferSize];
snprintf(buffer, kBufferSize, fmt, args...);
errMsg_.reset(new std::string(buffer));
}

Expand Down

0 comments on commit 8aefc30

Please sign in to comment.