Merge pull request #259 from erikaldsund/fix_r_string_inconsistency

Fixed bug in r_string
This commit is contained in:
Jaeseung Ha 2017-12-25 15:30:32 +09:00 committed by GitHub
commit 943dcba507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,9 +175,10 @@ namespace crow
return os; return os;
} }
private: private:
void force(char* s, uint32_t /*length*/) void force(char* s, uint32_t length)
{ {
s_ = s; s_ = s;
e_ = s_ + length;
owned_ = 1; owned_ = 1;
} }
friend rvalue crow::json::load(const char* data, size_t size); friend rvalue crow::json::load(const char* data, size_t size);