-
Notifications
You must be signed in to change notification settings - Fork 292
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
Replace make_quick_sort with qsort #397
Conversation
Remove misc_tools.h from CMakeLists.txt and toxcore/Makefile.inc. |
Also, rebase. |
@iphydf Done. |
Reviewed 5 of 5 files at r1. toxcore/Makefile.inc, line 51 at r1 (raw file):
Remove Comments from Reviewable |
Review status: 4 of 5 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. toxcore/Makefile.inc, line 51 at r1 (raw file): Previously, Diadlo (Polshakov Dmitry) wrote…
Done. Comments from Reviewable |
Reviewed 1 of 1 files at r2. Comments from Reviewable |
Am I confused about how qsort works? Why doesn't this code fail? Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. auto_tests/crypto_test.c, line 347 at r2 (raw file):
This doesn't work. You're comparing the pointers, but should be comparing the values pointed at by a and b, which are auto_tests/crypto_test.c, line 374 at r2 (raw file):
It's coincidence that this works. The third argument is the element size. Comments from Reviewable |
Review status: 4 of 5 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. auto_tests/crypto_test.c, line 347 at r2 (raw file): Previously, iphydf wrote…
Done. auto_tests/crypto_test.c, line 374 at r2 (raw file): Previously, iphydf wrote…
Done. Comments from Reviewable |
Reviewed 1 of 5 files at r1, 1 of 1 files at r2, 2 of 2 files at r3, 1 of 1 files at r4. Comments from Reviewable |
No squashing, huh. That first commit really threw me off when I saw the mistakes in the commits in master branch, just to see it getting fixed in the following commit. |
Comments from Reviewable |
closes #378
This change is