-
Notifications
You must be signed in to change notification settings - Fork 159
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
time.h: time() and ctime() #253
Conversation
Codecov Report
@@ Coverage Diff @@
## master #253 +/- ##
==========================================
+ Coverage 80.79% 81.61% +0.82%
==========================================
Files 134 135 +1
Lines 5336 5525 +189
==========================================
+ Hits 4311 4509 +198
+ Misses 835 825 -10
- Partials 190 191 +1
Continue to review full report at Codecov.
|
Reviewed 4 of 4 files at r1, 1 of 1 files at r2. tests/time.c, line 18 at r2 (raw file):
Please use tests/time.c, line 20 at r2 (raw file):
This is unesseary because there is an assertions above. However, it would be a good idea to also check: tests/time.c, line 30 at r2 (raw file):
Avoid tests/time.c, line 32 at r2 (raw file):
Like the previous Comments from Reviewable |
Thanks for putting in the PR. I started to review it as you were still making changes :) Please respond to the discussions on Reviewable (purple button at the top). |
Review status: 2 of 4 files reviewed at latest revision, 4 unresolved discussions. tests/time.c, line 18 at r2 (raw file): Previously, elliotchance (Elliot Chance) wrote…
Done. tests/time.c, line 20 at r2 (raw file): Previously, elliotchance (Elliot Chance) wrote…
Done. tests/time.c, line 30 at r2 (raw file): Previously, elliotchance (Elliot Chance) wrote…
Done. tests/time.c, line 32 at r2 (raw file): Previously, elliotchance (Elliot Chance) wrote…
Done. Comments from Reviewable |
Reviewed 2 of 2 files at r3. Comments from Reviewable |
@elliotchance Thank you for reviewing. I am having a hard time troubleshooting the OS X error; I do not have a machine at hand. I tried to compile similar code in Travis. The build succeeded. Is it possible to add debug for the Travis/OS X build? Any help appreciated. |
When I run it on my Mac:
It looks like When I removed https://github.com/elliotchance/c2go/pull/253/files#diff-c3bb064a4d264cc6f2d46ab300725b61R25 I did not get the segfault. Even the same compiler on different operating systems can give different results. You can remove line 25 and 26 and your build should pass. |
Reviewed 1 of 1 files at r4. Comments from Reviewable |
Awesome - thanks for the PR! 👍 |
@elliotchance Thank you for merging! |
This change is