[Python-apps-commits] r12804 - in packages/cython/trunk/debian (3 files)
yoh at users.alioth.debian.org
yoh at users.alioth.debian.org
Fri Feb 19 18:20:36 UTC 2016
Date: Friday, February 19, 2016 @ 18:20:36
Author: yoh
Revision: 12804
patches/guess_longness.patch - dropped since this release includes it
Modified:
packages/cython/trunk/debian/changelog
packages/cython/trunk/debian/patches/series
Deleted:
packages/cython/trunk/debian/patches/guess_longness.patch
Modified: packages/cython/trunk/debian/changelog
===================================================================
--- packages/cython/trunk/debian/changelog 2016-02-19 18:20:31 UTC (rev 12803)
+++ packages/cython/trunk/debian/changelog 2016-02-19 18:20:36 UTC (rev 12804)
@@ -3,6 +3,7 @@
* Fresh upstream bugfix release
* patches/deb-reproducible.patch - deterministically sort items for
reproducible execution. Thanks Chris Lamb (Closes: #806493)
+ * patches/guess_longness.patch - dropped since this release includes it
-- Yaroslav Halchenko <debian at onerussian.com> Thu, 18 Feb 2016 20:25:48 -0500
Deleted: packages/cython/trunk/debian/patches/guess_longness.patch
===================================================================
--- packages/cython/trunk/debian/patches/guess_longness.patch 2016-02-19 18:20:31 UTC (rev 12803)
+++ packages/cython/trunk/debian/patches/guess_longness.patch 2016-02-19 18:20:36 UTC (rev 12804)
@@ -1,21 +0,0 @@
-diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py
-index 2984215..230cf47 100644
---- a/Cython/Compiler/ExprNodes.py
-+++ b/Cython/Compiler/ExprNodes.py
-@@ -1238,7 +1238,15 @@ class IntNode(ConstNode):
- self.result_code = self.get_constant_c_result_code()
-
- 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):
- value = self.value
Modified: packages/cython/trunk/debian/patches/series
===================================================================
--- packages/cython/trunk/debian/patches/series 2016-02-19 18:20:31 UTC (rev 12803)
+++ packages/cython/trunk/debian/patches/series 2016-02-19 18:20:36 UTC (rev 12804)
@@ -1,3 +1,2 @@
deb_disable_googleanalytics
-guess_longness.patch
deb-reproducible.patch
More information about the Python-apps-commits
mailing list