Skip to content

Commit

Permalink
msgpack encode
Browse files Browse the repository at this point in the history
  • Loading branch information
yksten committed Oct 18, 2020
1 parent b820796 commit 632d0f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/msgpack/encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ namespace struct2x {
}

void MPHelper::setValue(const std::string& v) {
if (checkEmpty(v)) {
if (!checkEmpty(v)) {
size_t l = v.size();
if (l < 32) {
unsigned char d = 0xa0 | (uint8_t)l;
Expand Down

0 comments on commit 632d0f5

Please sign in to comment.