blob: 9813dd2a3d50707f99b67854a2e558f581c1335c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
diff -upr wake-0.21.0-orig/common/utf8.cpp wake-0.21.0/common/utf8.cpp
--- wake-0.21.0-orig/common/utf8.cpp 2021-07-07 02:37:32.000000000 +0300
+++ wake-0.21.0/common/utf8.cpp 2023-08-08 18:41:35.684017948 +0300
@@ -19,6 +19,7 @@
#define _XOPEN_SOURCE 700
#define _POSIX_C_SOURCE 200809L
+#include <cstdint>
#include <string>
#include "utf8.h"
diff -upr wake-0.21.0-orig/common/utf8.h wake-0.21.0/common/utf8.h
--- wake-0.21.0-orig/common/utf8.h 2021-07-07 02:37:32.000000000 +0300
+++ wake-0.21.0/common/utf8.h 2023-08-08 18:40:58.289707885 +0300
@@ -18,6 +18,7 @@
#ifndef UTF8_H
#define UTF8_H
+#include <cstdint>
#include <string>
bool push_utf8(std::string &result, uint32_t c);
diff -upr wake-0.21.0-orig/src/value.cpp wake-0.21.0/src/value.cpp
--- wake-0.21.0-orig/src/value.cpp 2021-07-07 02:37:32.000000000 +0300
+++ wake-0.21.0/src/value.cpp 2023-08-08 18:42:36.975628640 +0300
@@ -288,7 +288,7 @@ RegExp::RegExp(Heap &h, const re2::Strin
: Parent(h), exp(std::make_shared<RE2>(
has_set_dot_nl<RE2::Options>::value
? re2::StringPiece(regexp)
- : re2::StringPiece("(?s)" + regexp.as_string()),
+ : re2::StringPiece("(?s)" + std::string(regexp)),
opts)) { }
RegExp::RegExp(Heap &h, const re2::StringPiece ®exp)
|