Skip to content

get_gmtoff() now returns time_t #10838

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 30, 2018
Merged

get_gmtoff() now returns time_t #10838

merged 1 commit into from
Nov 30, 2018

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 30, 2018

get_gmtoff() now returns time_t instead of int to fix the following
Visual Studio warning:

Modules\timemodule.c(1183): warning C4244: 'return':
conversion from 'time_t' to 'int', possible loss of data

get_gmtoff() now returns time_t instead of int to fix the following
Visual Studio warning:

    Modules\timemodule.c(1183): warning C4244: 'return':
    conversion from 'time_t' to 'int', possible loss of data
@vstinner vstinner merged commit 503ce5c into python:master Nov 30, 2018
@vstinner vstinner deleted the get_gmtoff_time_t branch November 30, 2018 23:39
@miss-islington
Copy link
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @vstinner, I could not cleanly backport this to 3.6 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 503ce5c482cb267b0770bc46c315d5cf822bdca9 3.6

@miss-islington
Copy link
Contributor

Sorry, @vstinner, I could not cleanly backport this to 3.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 503ce5c482cb267b0770bc46c315d5cf822bdca9 3.7

@bedevere-bot
Copy link

GH-10839 is a backport of this pull request to the 3.7 branch.

@bedevere-bot
Copy link

GH-10840 is a backport of this pull request to the 3.6 branch.

vstinner added a commit that referenced this pull request Dec 1, 2018
get_gmtoff() now returns time_t instead of int to fix the following
Visual Studio warning:

    Modules\timemodule.c(1183): warning C4244: 'return':
    conversion from 'time_t' to 'int', possible loss of data

(cherry picked from commit 503ce5c)
vstinner added a commit that referenced this pull request Dec 1, 2018
get_gmtoff() now returns time_t instead of int to fix the following
Visual Studio warning:

    Modules\timemodule.c(1183): warning C4244: 'return':
    conversion from 'time_t' to 'int', possible loss of data

(cherry picked from commit 503ce5c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants