Skip to content

Fix two "unusual" format warnings#5792

Merged
MichaelChirico merged 4 commits intomasterfrom
weird-fmt
Dec 6, 2023
Merged

Fix two "unusual" format warnings#5792
MichaelChirico merged 4 commits intomasterfrom
weird-fmt

Conversation

@MichaelChirico
Copy link
Copy Markdown
Member

Part of #5790

I don't see clear answers about DWORD but it seems like %ld will work:

https://copyprogramming.com/howto/what-is-the-format-specifier-for-dword-c

For TRUELENGTH() we wrote the comment about casting to long long but there is no cast. So trying to actually do the cast.

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b147969) 97.46% compared to head (ae83a09) 97.46%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5792   +/-   ##
=======================================
  Coverage   97.46%   97.46%           
=======================================
  Files          80       80           
  Lines       14814    14814           
=======================================
  Hits        14439    14439           
  Misses        375      375           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment thread src/assign.c Outdated
@jangorecki jangorecki mentioned this pull request Dec 5, 2023
@jangorecki
Copy link
Copy Markdown
Member

testing here https://gitlab.com/Rdatatable/data.table/-/pipelines/1096182458

@ben-schwen
Copy link
Copy Markdown
Member

testing here https://gitlab.com/Rdatatable/data.table/-/pipelines/1096182458

Well the warnings about fread.c:149:19 and assign.c:474:15 are gone!

@MichaelChirico
Copy link
Copy Markdown
Member Author

Taking that as success. I see the complex issues on dev and a new .Rbuildignore issue, nothing about format warnings.

@MichaelChirico MichaelChirico merged commit 155bb87 into master Dec 6, 2023
@MichaelChirico MichaelChirico deleted the weird-fmt branch December 6, 2023 01:55
MichaelChirico added a commit that referenced this pull request Dec 6, 2023
* Fix two "unusual" format warnings

* Add comment, find more %d usages

* Update src/assign.c

---------

Co-authored-by: jangorecki <j.gorecki@wit.edu.pl>
MichaelChirico added a commit that referenced this pull request Dec 6, 2023
* Fix two "unusual" format warnings (#5792)

* Fix two "unusual" format warnings

* Add comment, find more %d usages

* Update src/assign.c

---------

Co-authored-by: jangorecki <j.gorecki@wit.edu.pl>

* fix

* more %zu in gsumm

---------

Co-authored-by: jangorecki <j.gorecki@wit.edu.pl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants