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

sscanf のワーニング対応。 #4

Merged
merged 1 commit into from
Jan 26, 2019

Conversation

mikoto2000
Copy link
Contributor

#2 でとり切れない sscanf のワーニング対応です。

■ 原因

%llxlong long unsigned int のための変換指定子だが、 Linux 64bit の uint64_t の実体は long unsigned int であるため、ワーニングが出ている。

■ 対応
long unsigned int 用の変換指定子である %lx に修正。

@mitsut
Copy link
Owner

mitsut commented Jan 26, 2019

sscanfも環境に依存しないような変換識別子が欲しいですね。

@mitsut mitsut merged commit 9bdd204 into mitsut:master Jan 26, 2019
@mikoto2000 mikoto2000 deleted the fix_sscanf_warning branch January 28, 2019 10:19
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.

None yet

2 participants