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
Kirill Smelkov
cython
Commits
e00f9c27
Commit
e00f9c27
authored
Mar 31, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix C compiler warning about implicit integer downsizing.
Closes #2194.
parent
b91c48cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Utility/TypeConversion.c
Cython/Utility/TypeConversion.c
+3
-3
No files found.
Cython/Utility/TypeConversion.c
View file @
e00f9c27
...
...
@@ -678,8 +678,8 @@ static CYTHON_INLINE PyObject* {{TO_PY_FUNCTION}}({{TYPE}} value, Py_ssize_t wid
// 'dpos' points to end of digits array + 1 initially to allow for pre-decrement looping
char
*
dpos
,
*
end
=
digits
+
sizeof
({{
TYPE
}})
*
3
+
2
;
const
char
*
hex_digits
=
DIGITS_HEX
;
Py_ssize_t
ulength
;
int
length
,
prepend_sign
,
last_one_off
;
Py_ssize_t
length
,
ulength
;
int
prepend_sign
,
last_one_off
;
{{
TYPE
}}
remaining
;
const
{{
TYPE
}}
neg_one
=
({{
TYPE
}})
-
1
,
const_zero
=
({{
TYPE
}})
0
;
const
int
is_unsigned
=
neg_one
>
const_zero
;
...
...
@@ -743,7 +743,7 @@ static CYTHON_INLINE PyObject* {{TO_PY_FUNCTION}}({{TYPE}} value, Py_ssize_t wid
if
(
ulength
==
1
)
{
return
PyUnicode_FromOrdinal
(
*
dpos
);
}
return
__Pyx_PyUnicode_BuildFromAscii
(
ulength
,
dpos
,
length
,
prepend_sign
,
padding_char
);
return
__Pyx_PyUnicode_BuildFromAscii
(
ulength
,
dpos
,
(
int
)
length
,
prepend_sign
,
padding_char
);
}
...
...
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