Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
87f149c4
Commit
87f149c4
authored
Apr 28, 2020
by
jamesge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a narrowing warning on aarch64
parent
2f8fc37d
Pipeline
#397
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
case_ignored_flat_map.cpp
src/butil/containers/case_ignored_flat_map.cpp
+2
-2
case_ignored_flat_map.h
src/butil/containers/case_ignored_flat_map.h
+1
-1
No files found.
src/butil/containers/case_ignored_flat_map.cpp
View file @
87f149c4
...
...
@@ -19,7 +19,7 @@
namespace
butil
{
static
const
char
g_tolower_map_base
[]
=
{
static
const
signed
char
g_tolower_map_base
[]
=
{
-
128
,
-
127
,
-
126
,
-
125
,
-
124
,
-
123
,
-
122
,
-
121
,
-
120
,
-
119
,
-
118
,
-
117
,
-
116
,
-
115
,
-
114
,
-
113
,
-
112
,
-
111
,
-
110
,
-
109
,
-
108
,
-
107
,
-
106
,
-
105
,
-
104
,
-
103
,
-
102
,
-
101
,
-
100
,
...
...
@@ -48,6 +48,6 @@ static const char g_tolower_map_base[] = {
120
,
121
,
122
,
123
,
124
,
125
,
126
,
127
};
extern
const
char
*
const
g_tolower_map
=
g_tolower_map_base
+
128
;
extern
const
signed
char
*
const
g_tolower_map
=
g_tolower_map_base
+
128
;
}
// namespace butil
src/butil/containers/case_ignored_flat_map.h
View file @
87f149c4
...
...
@@ -27,7 +27,7 @@ namespace butil {
// NOTE: Using ascii_tolower instead of ::tolower shortens 150ns in
// FlatMapTest.perf_small_string_map (with -O2 added, -O0 by default)
inline
char
ascii_tolower
(
char
c
)
{
extern
const
char
*
const
g_tolower_map
;
extern
const
signed
char
*
const
g_tolower_map
;
return
g_tolower_map
[(
int
)
c
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment