Skip to content
Snippets Groups Projects
Commit f8ed7de0 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Interesting, these modern sea plus plusisms

This was necessary to get to build for MSVC2019 and GCC 8.3.0
parent 87ce8029
No related branches found
No related tags found
No related merge requests found
......@@ -36,8 +36,9 @@ public:
return buf[0];
}
void operator = (const char* s) {
using std::min;
memset(buf, 0, size);
buf[0] = (uint8_t)std::min(size, strlen(s));
buf[0] = (uint8_t)min(size, strlen(s));
memcpy(buf + 1, s, len());
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment