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

Replace the only two occurrences of \t in C code #252

Closed
wants to merge 1 commit into from

Conversation

dtolnay
Copy link

@dtolnay dtolnay commented Aug 1, 2022

The use of hard tabs, where everything else in this project uses 4-space indent, causes the code to be displayed in a misleading way when tab size is anything other than 8, including in GitHub's web UI.

libyaml/src/api.c

Lines 123 to 126 in f8f760f

if ((char *)*end - (char *)*start >= INT_MAX / 2)
return 0;
new_start = yaml_realloc(*start, ((char *)*end - (char *)*start)*2);

Screenshot from 2022-08-01 14-14-13

@dtolnay
Copy link
Author

dtolnay commented Aug 1, 2022

CI failure appears unrelated.

Using default tag: latest
Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit

@dtolnay dtolnay closed this Jun 1, 2024
@dtolnay dtolnay deleted the tab branch June 1, 2024 16:17
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