This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: unicodetype_db.h warning: integer constant is too large for 'long'
Type: Stage:
Components: Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: amaury.forgeotdarc Nosy List: amaury.forgeotdarc, ezio.melotti, lemburg, ocean-city
Priority: normal Keywords:

Created on 2009-10-12 11:56 by ocean-city, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg93893 - (view) Author: Hirokazu Yamamoto (ocean-city) * (Python committer) Date: 2009-10-12 11:56
I've got this warning while compiling on coLinux.

gcc -pthread -c -fno-strict-aliasing -g -Wall -Wstrict-prototypes  -I.
-IInclude
 -I./Include   -DPy_BUILD_CORE -o Objects/unicodectype.o
Objects/unicodectype.c
In file included from Objects/unicodectype.c:34:
Objects/unicodetype_db.h: In function '_PyUnicodeUCS2_ToNumeric':
Objects/unicodetype_db.h:2077: warning: integer constant is too large
for 'long'
 type

This issue is related to issue1571184, I think.
msg93894 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2009-10-12 12:10
Hirokazu Yamamoto wrote:
> This issue is related to issue1571184, I think.

Assuming that you're using the SVN version of Python, I agree,
that's likely.

This is the line in question:

    case 0x5146:
        return (double) 1000000000000;

Looks like the code generator should append a ".0" to signal
that the value is indeed a double. It be even more readable,
if it'd use the scientific E-notation, ie. 1e12.
msg93947 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2009-10-13 23:21
Fixed with r75396 (trunk) and r75397 (py3k)
I'll check with the buildbots before I close this issue.
msg93949 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2009-10-13 23:40
Amaury Forgeot d'Arc wrote:
> 
> Amaury Forgeot d'Arc <amauryfa@gmail.com> added the comment:
> 
> Fixed with r75396 (trunk) and r75397 (py3k)

Thanks, Amaury.

> I'll check with the buildbots before I close this issue.
History
Date User Action Args
2022-04-11 14:56:53adminsetgithub: 51361
2009-10-14 17:14:44amaury.forgeotdarcsetstatus: open -> closed
2009-10-13 23:40:54lemburgsetstatus: pending -> open

messages: + msg93949
2009-10-13 23:21:56amaury.forgeotdarcsetstatus: open -> pending
resolution: fixed
messages: + msg93947
2009-10-13 01:55:10ezio.melottisetnosy: + ezio.melotti
2009-10-12 12:10:50lemburgsetassignee: amaury.forgeotdarc

nosy: + amaury.forgeotdarc
2009-10-12 12:10:32lemburgsetnosy: + lemburg
title: unicodetype_db.h warning: integer constant is too large for 'long' -> unicodetype_db.h warning: integer constant is too large for 'long'
messages: + msg93894
2009-10-12 11:56:46ocean-citycreate