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

fpos_t invalid operands to binary #1

Open
manuqiao opened this issue Nov 21, 2021 · 2 comments
Open

fpos_t invalid operands to binary #1

manuqiao opened this issue Nov 21, 2021 · 2 comments

Comments

@manuqiao
Copy link

writer.c: In function ‘get_file_size_by_name’:
writer.c:116:18: error: invalid operands to binary - (have ‘fpos_t’ {aka ‘struct _G_fpos_t’} and ‘fpos_t’ {aka ‘struct _G_fpos_t’})
116 | return fpos_end - fpos_begin;

@manuqiao
Copy link
Author

System: Ubuntu 20.04.3 LTS

@zhaozihanzzh
Copy link

Maybe change to return fpos_end.__pos - fpos_begin.__pos;?

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

No branches or pull requests

2 participants