Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-41428: Fix compiler warning in unionobject.c#22416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:masterfromvstinner:fix_union_warn2
Sep 26, 2020
Merged

bpo-41428: Fix compiler warning in unionobject.c#22416

vstinner merged 1 commit intopython:masterfromvstinner:fix_union_warn2
Sep 26, 2020

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedSep 26, 2020
edited by bedevere-bot
Loading

Use Py_ssize_t type rather than int, to store lengths in
unionobject.c. Fix the warning:

Objects\unionobject.c(205,1): warning C4244: 'initializing':
conversion from 'Py_ssize_t' to 'int', possible loss of data

https://bugs.python.org/issue41428

Use Py_ssize_t type rather than int, to store lengths inunionobject.c. Fix the warning:Objects\unionobject.c(205,1): warning C4244: 'initializing':conversion from 'Py_ssize_t' to 'int', possible loss of data
Copy link
Member

@corona10corona10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

lgtm

@vstinnervstinner merged commitd73cf7c intopython:masterSep 26, 2020
@vstinnervstinner deleted the fix_union_warn2 branchSeptember 26, 2020 10:48
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure⚠️⚠️⚠️

Hi! The buildbotAMD64 Ubuntu Shared 3.x has failed when building commitd73cf7c.

What do you need to do:

  1. Don't panic.
  2. Checkthe buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/506/builds/124) and take a look at the build logs.
  4. Check if the failure is related to this commit (d73cf7c) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/506/builds/124

Summary of the results of the build (if available):

Click to see traceback logs
remote:Enumerating objects: 4, done.remote:Counting objects:  25% (1/4)remote:Counting objects:  50% (2/4)remote:Counting objects:  75% (3/4)remote:Counting objects: 100% (4/4)remote:Counting objects: 100% (4/4), done.remote:Total 4 (delta 3), reused 4 (delta 3), pack-reused 0From https://github.com/python/cpython * branch                  master     -> FETCH_HEADReset branch 'master'Parser/parser.c:24830:1: fatal error: error writing to /tmp/ccadKSXO.s: No space left on device } ^compilation terminated.make:*** [Parser/parser.o] Error 1find:‘build’: No such file or directoryfind:‘build’: No such file or directoryfind:‘build’: No such file or directoryfind:‘build’: No such file or directorymake:[clean-retain-profile] Error 1 (ignored)

shihai1991 added a commit to shihai1991/cpython that referenced this pull requestSep 29, 2020
* origin/master: (113 commits)  bpo-41773: Raise exception for non-finite weights in random.choices().  (pythonGH-22441)  bpo-41873: Add vectorcall for float() (pythonGH-22432)  bpo-41861: Convert _sqlite3 PrepareProtocolType to heap type (pythonGH-22428)  bpo-41842: Add codecs.unregister() function (pythonGH-22360)  bpo-41875: Use __builtin_unreachable when possible (pythonGH-22433)  bpo-40105: ZipFile truncate in append mode with shorter comment (pythonGH-19337)  bpo-41870: Use PEP 590 vectorcall to speed up bool()  (pythonGH-22427)  [doc] Leverage the fact that the actual types can now be indexed for typing (pythonGH-22340)  bpo-41861: Convert _sqlite3 cache and node static types to heap types (pythonGH-22417)  bpo-41858: Clarify line in optparse doc (pythonGH-22407)  Revert "Fix all Python Cookbook links (python#22205)" (pythonGH-22424)  bpo-1635741: Port _bisect module to multi-phase init (pythonGH-22415)  bpo-41428: Fix compiler warning in unionobject.c (pythonGH-22416)  Fix logging error message (pythonGH-22410)  bpo-39934: Account for control blocks in 'except' in compiler. (pythonGH-22395)  bpo-41775: Make 'IDLE Shell' the shell title  (python#22399)  bpo-41428: Fix compiler warnings in unionobject.c (pythonGH-22388)  bpo-41654: Fix compiler warning in MemoryError_dealloc() (pythonGH-22387)  bpo-41833: threading.Thread now uses the target name (pythonGH-22357)  bpo-30155: Add macros to get tzinfo from datetime instances (pythonGH-21633)  ...
xzy3 pushed a commit to xzy3/cpython that referenced this pull requestOct 18, 2020
Use Py_ssize_t type rather than int, to store lengths inunionobject.c. Fix the warning:Objects\unionobject.c(205,1): warning C4244: 'initializing':conversion from 'Py_ssize_t' to 'int', possible loss of data
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@corona10corona10corona10 approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@vstinner@bedevere-bot@corona10@the-knights-who-say-ni

[8]ページ先頭

©2009-2025 Movatter.jp