Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
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
protobuf
Commits
bfdc2ba0
Unverified
Commit
bfdc2ba0
authored
Nov 27, 2018
by
Adam Cozzette
Committed by
GitHub
Nov 27, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5398 from brian-peloton/master
Avoid octal constants in strutil.cc
parents
ef3a7250
dd614b77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
strutil.cc
src/google/protobuf/stubs/strutil.cc
+5
-4
No files found.
src/google/protobuf/stubs/strutil.cc
View file @
bfdc2ba0
...
...
@@ -1960,11 +1960,12 @@ int Base64UnescapeInternal(const char *src_param, int szsrc,
// #include <sys/time.h>
// #include <stdlib.h>
// #include <string.h>
// #include <stdio.h>
// main()
// {
// static const char Base64[] =
// "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
// char *pos;
// c
onst c
har *pos;
// int idx, i, j;
// printf(" ");
// for (i = 0; i < 255; i += 8) {
...
...
@@ -1977,7 +1978,7 @@ int Base64UnescapeInternal(const char *src_param, int szsrc,
// if (idx == -1)
// printf(" %2d, ", idx);
// else
// printf(" %2d/
*%c*
/,", idx, j);
// printf(" %2d/
""*%c*""
/,", idx, j);
// }
// printf("\n ");
// }
...
...
@@ -1995,7 +1996,7 @@ static const signed char kUnBase64[] = {
52
/*0*/
,
53
/*1*/
,
54
/*2*/
,
55
/*3*/
,
56
/*4*/
,
57
/*5*/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22
/*W*/
,
23
/*X*/
,
24
/*Y*/
,
25
/*Z*/
,
-
1
,
-
1
,
-
1
,
-
1
,
63
/*_*/
,
-
1
,
26
/*a*/
,
27
/*b*/
,
28
/*c*/
,
29
/*d*/
,
30
/*e*/
,
31
/*f*/
,
32
/*g*/
,
...
...
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