Skip to content

Conversation

andrewnester
Copy link
Contributor

{
timelib_rel_time *rt;
timelib_time *swp;
timelib_sll dst_corr = 0 ,dst_h_corr = 0, dst_m_corr = 0;
timelib_time one_backup, two_backup;

rt = timelib_rel_time_ctor();
rt->invert = 0;
rt->invert = absolute ? 1 : 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

If absolute has a boolean value, then is this branch really needed? rt->invert = absolute; should suffice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sounds reasonable, thanks!

Copy link
Contributor

@motecshine motecshine May 3, 2017

Choose a reason for hiding this comment

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

May be IS_TRUE IS_FALSE can instead 1 AND 0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@motecshine the thing is that we don't need branch at all.

@andrewnester andrewnester force-pushed the 74529-date-absolute branch from ee6899e to 65d4990 Compare May 3, 2017 13:02
@krakjoe krakjoe added the Bug label May 5, 2017
@krakjoe
Copy link
Member

krakjoe commented May 9, 2017

Changes to timelib need to be made upstream.

/cc @derickr

@andrewnester
Copy link
Contributor Author

@krakjoe @derickr any update on it?

@derickr
Copy link
Member

derickr commented Jun 7, 2017

What @krakjoe said: Change to timelib need to be made upstream: http://github.com/derickr/timelib

@andrewnester
Copy link
Contributor Author

@derick thanks! appropriate changes to timelib done. Here is corresponding PR: derickr/timelib#11

@krakjoe
Copy link
Member

krakjoe commented Jul 10, 2017

@andrewnester I'm going to close this PR, please bump the upstream PR and open a clean PR containing only the test when upstream has merged your changes.

@krakjoe krakjoe closed this Jul 10, 2017
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.

5 participants