Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
c2b03e5a
Commit
c2b03e5a
authored
Oct 22, 2018
by
telamonian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #2675
parent
4c0e8ccc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Cython/Utility/Buffer.c
Cython/Utility/Buffer.c
+4
-3
No files found.
Cython/Utility/Buffer.c
View file @
c2b03e5a
...
@@ -298,6 +298,7 @@ static void __Pyx_BufFmt_RaiseUnexpectedChar(char ch) {
...
@@ -298,6 +298,7 @@ static void __Pyx_BufFmt_RaiseUnexpectedChar(char ch) {
static
const
char
*
__Pyx_BufFmt_DescribeTypeChar
(
char
ch
,
int
is_complex
)
{
static
const
char
*
__Pyx_BufFmt_DescribeTypeChar
(
char
ch
,
int
is_complex
)
{
switch
(
ch
)
{
switch
(
ch
)
{
case
'?'
:
return
"'bool'"
;
case
'c'
:
return
"'char'"
;
case
'c'
:
return
"'char'"
;
case
'b'
:
return
"'signed char'"
;
case
'b'
:
return
"'signed char'"
;
case
'B'
:
return
"'unsigned char'"
;
case
'B'
:
return
"'unsigned char'"
;
...
@@ -342,7 +343,7 @@ static size_t __Pyx_BufFmt_TypeCharToStandardSize(char ch, int is_complex) {
...
@@ -342,7 +343,7 @@ static size_t __Pyx_BufFmt_TypeCharToStandardSize(char ch, int is_complex) {
static
size_t
__Pyx_BufFmt_TypeCharToNativeSize
(
char
ch
,
int
is_complex
)
{
static
size_t
__Pyx_BufFmt_TypeCharToNativeSize
(
char
ch
,
int
is_complex
)
{
switch
(
ch
)
{
switch
(
ch
)
{
case
'c'
:
case
'b'
:
case
'B'
:
case
's'
:
case
'p'
:
return
1
;
case
'
?'
:
case
'
c'
:
case
'b'
:
case
'B'
:
case
's'
:
case
'p'
:
return
1
;
case
'h'
:
case
'H'
:
return
sizeof
(
short
);
case
'h'
:
case
'H'
:
return
sizeof
(
short
);
case
'i'
:
case
'I'
:
return
sizeof
(
int
);
case
'i'
:
case
'I'
:
return
sizeof
(
int
);
case
'l'
:
case
'L'
:
return
sizeof
(
long
);
case
'l'
:
case
'L'
:
return
sizeof
(
long
);
...
@@ -431,7 +432,7 @@ static char __Pyx_BufFmt_TypeCharToGroup(char ch, int is_complex) {
...
@@ -431,7 +432,7 @@ static char __Pyx_BufFmt_TypeCharToGroup(char ch, int is_complex) {
case
'b'
:
case
'h'
:
case
'i'
:
case
'b'
:
case
'h'
:
case
'i'
:
case
'l'
:
case
'q'
:
case
's'
:
case
'p'
:
case
'l'
:
case
'q'
:
case
's'
:
case
'p'
:
return
'I'
;
return
'I'
;
case
'B'
:
case
'H'
:
case
'I'
:
case
'L'
:
case
'Q'
:
case
'
?'
:
case
'
B'
:
case
'H'
:
case
'I'
:
case
'L'
:
case
'Q'
:
return
'U'
;
return
'U'
;
case
'f'
:
case
'd'
:
case
'g'
:
case
'f'
:
case
'd'
:
case
'g'
:
return
(
is_complex
?
'C'
:
'R'
);
return
(
is_complex
?
'C'
:
'R'
);
...
@@ -752,7 +753,7 @@ static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const cha
...
@@ -752,7 +753,7 @@ static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const cha
return
NULL
;
return
NULL
;
}
}
CYTHON_FALLTHROUGH
;
CYTHON_FALLTHROUGH
;
case
'c'
:
case
'b'
:
case
'B'
:
case
'h'
:
case
'H'
:
case
'i'
:
case
'I'
:
case
'
?'
:
case
'
c'
:
case
'b'
:
case
'B'
:
case
'h'
:
case
'H'
:
case
'i'
:
case
'I'
:
case
'l'
:
case
'L'
:
case
'q'
:
case
'Q'
:
case
'l'
:
case
'L'
:
case
'q'
:
case
'Q'
:
case
'f'
:
case
'd'
:
case
'g'
:
case
'f'
:
case
'd'
:
case
'g'
:
case
'O'
:
case
'p'
:
case
'O'
:
case
'p'
:
...
...
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