Skip to content

Commit da08632

Browse files
committed
hotfix: include
1 parent ea7dfe2 commit da08632

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dice/DiceEvent.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "DiceStatic.hpp"
1616
#include <memory>
1717
#include <ctime>
18+
#include <charconv>
1819
using namespace std;
1920
static bool is_digit(char c) { return c >= '0' && c <= '9'; }
2021

Dice/DicePython.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static string py_to_native_string(PyObject* o) {
5959
auto t{ Py_TYPE(o) };
6060
#ifdef _WIN32
6161
Py_ssize_t l = 0;
62-
return t == &PyUnicode_Type ? UtoGBK(PyUnicode_AsWideCharString(o, l)) : empty;
62+
return t == &PyUnicode_Type ? UtoGBK(PyUnicode_AsWideCharString(o, &l)) : empty;
6363
#else
6464
return t == &PyUnicode_Type ? PyUnicode_AsUTF8(o) : empty;
6565
#endif

0 commit comments

Comments
 (0)