diff options
Diffstat (limited to 'src/buffer.cpp')
-rw-r--r-- | src/buffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.cpp b/src/buffer.cpp index 23228eb..7a05ce2 100644 --- a/src/buffer.cpp +++ b/src/buffer.cpp @@ -86,7 +86,7 @@ Buffer::Buffer(std::string hex_data, bool allow_realloc) : length_(hex_data.size for(u_int32_t i=0; i<length_; ++i) { - u_int32_t tmp; + u_int8_t tmp; std::istringstream ss(std::string(hex_data.c_str(), i*2, 2)); if(!(ss >> std::hex >> tmp)) tmp = 0; buf_[i] = tmp; |