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
d7c0331a
Commit
d7c0331a
authored
9 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0.23.x'
Conflicts: CHANGES.rst Cython/Shadow.py
parents
6fd4c512
e8199242
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
CHANGES.rst
CHANGES.rst
+1
-1
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+9
-1
No files found.
CHANGES.rst
View file @
d7c0331a
...
@@ -57,7 +57,7 @@ Other changes
...
@@ -57,7 +57,7 @@ Other changes
-------------
-------------
0.23.3 (2015-
??-??
)
0.23.3 (2015-
09-29
)
===================
===================
Bugs fixed
Bugs fixed
...
...
This diff is collapsed.
Click to expand it.
Cython/Compiler/ExprNodes.py
View file @
d7c0331a
...
@@ -1238,7 +1238,15 @@ class IntNode(ConstNode):
...
@@ -1238,7 +1238,15 @@ class IntNode(ConstNode):
self
.
result_code
=
self
.
get_constant_c_result_code
()
self
.
result_code
=
self
.
get_constant_c_result_code
()
def
get_constant_c_result_code
(
self
):
def
get_constant_c_result_code
(
self
):
return
self
.
value_as_c_integer_string
()
+
self
.
unsigned
+
self
.
longness
unsigned
,
longness
=
self
.
unsigned
,
self
.
longness
literal
=
self
.
value_as_c_integer_string
()
if
not
(
unsigned
or
longness
)
and
self
.
type
.
is_int
and
literal
[
0
]
==
'-'
and
literal
[
1
]
!=
'0'
:
# negative decimal literal => guess longness from type to prevent wrap-around
if
self
.
type
.
rank
>=
PyrexTypes
.
c_longlong_type
.
rank
:
longness
=
'LL'
elif
self
.
type
.
rank
>=
PyrexTypes
.
c_long_type
.
rank
:
longness
=
'L'
return
literal
+
unsigned
+
longness
def
value_as_c_integer_string
(
self
):
def
value_as_c_integer_string
(
self
):
value
=
self
.
value
value
=
self
.
value
...
...
This diff is collapsed.
Click to expand it.
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