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

fix MD5 length and compile error #1050

Merged
merged 1 commit into from Aug 11, 2022
Merged

fix MD5 length and compile error #1050

merged 1 commit into from Aug 11, 2022

Conversation

zhuzilin
Copy link
Collaborator

fix #1041

the git_sha[0..8] would cause compile error on linux...

src/__global.zig Outdated Show resolved Hide resolved
src/__global.zig Outdated
else
std.fmt.comptimePrint("0.1.{d} ({s})", .{ build_id, Environment.git_sha[0..8] });
std.fmt.comptimePrint("0.1.{d} ({s})", .{ build_id, Environment.git_sha });
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
std.fmt.comptimePrint("0.1.{d} ({s})", .{ build_id, Environment.git_sha });
std.fmt.comptimePrint("0.1.{d} ({s})", .{ build_id, Environment.git_sha[0..@minimum(Environment.git_sha.len, 8)] });

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed.

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.

MD5 and MD4 incorrect byteLength
2 participants