Skip to content
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

Prune long long warnings. #1085

Merged
merged 1 commit into from Aug 16, 2018
Merged

Prune long long warnings. #1085

merged 1 commit into from Aug 16, 2018

Conversation

ghost
Copy link

@ghost ghost commented Aug 13, 2018

In file_saving_test.c the size argument type is not size_t, but int64_t, so %zu is inadequate here.


This change is Reviewable

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@iphydf iphydf added this to the v0.2.x milestone Aug 13, 2018
@@ -87,7 +87,7 @@ static void load_data_decrypted(void)
uint8_t *cipher = (uint8_t *)malloc(size);
uint8_t *clear = (uint8_t *)malloc(size - TOX_PASS_ENCRYPTION_EXTRA_LENGTH);
size_t read_value = fread(cipher, sizeof(*cipher), size, f);
printf("Read read_vavue = %u of %ld\n", (unsigned)read_value, size);
printf("Read read_vavue = %u of %lu\n", (unsigned)read_value, (unsigned long)(size));
Copy link
Member

Choose a reason for hiding this comment

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

Remove parentheses around size.

Note: only remove them in this instance. Don't remove them in any of the other casts in the other files.

@ghost
Copy link
Author

ghost commented Aug 16, 2018

@iphydf done (for some reason I didn't receive notification in e-mail).

@iphydf iphydf merged commit 006b4f4 into TokTok:master Aug 16, 2018
@robinlinden robinlinden modified the milestones: v0.2.x, v0.2.6 Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants