We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea7dfe2 commit da08632Copy full SHA for da08632
Dice/DiceEvent.cpp
@@ -15,6 +15,7 @@
15
#include "DiceStatic.hpp"
16
#include <memory>
17
#include <ctime>
18
+#include <charconv>
19
using namespace std;
20
static bool is_digit(char c) { return c >= '0' && c <= '9'; }
21
Dice/DicePython.cpp
@@ -59,7 +59,7 @@ static string py_to_native_string(PyObject* o) {
59
auto t{ Py_TYPE(o) };
60
#ifdef _WIN32
61
Py_ssize_t l = 0;
62
- return t == &PyUnicode_Type ? UtoGBK(PyUnicode_AsWideCharString(o, l)) : empty;
+ return t == &PyUnicode_Type ? UtoGBK(PyUnicode_AsWideCharString(o, &l)) : empty;
63
#else
64
return t == &PyUnicode_Type ? PyUnicode_AsUTF8(o) : empty;
65
#endif
0 commit comments