Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Declare variables prior to for loop in fastss.pyx for ANSI C compatibility #3378

Merged
merged 2 commits into from
Aug 22, 2022

Conversation

hstk30
Copy link
Contributor

@hstk30 hstk30 commented Aug 11, 2022

Fixes #3377.

I meet the error when I install gensim==4.2.0, mentioned in #3377

I guess some platform's (like my laptop) gcc not fit c standard, so I change the code to meet the ANSI C, I think it will fit all platform.

@piskvorky piskvorky changed the title Fixes #3377: fix error 'for loop initial declaration' Fix ANSI C in FastSS Aug 11, 2022
@piskvorky
Copy link
Owner

piskvorky commented Aug 11, 2022

Thank you!

@mpenkov the CI failures seem unrelated to this PR's changes. Could you please check what's going on?

@mpenkov
Copy link
Collaborator

mpenkov commented Aug 15, 2022

Yes, the failure looks unrelated. Let me fix the failure first, and then merge this. I've been a bit overwhelmed recently, will try to catch up on gensim stuff soon.

@mpenkov mpenkov self-assigned this Aug 21, 2022
@mpenkov mpenkov changed the title Fix ANSI C in FastSS Declare variables prior to for loop in fastss.pyx for ANSI C compatibility Aug 22, 2022
@mpenkov mpenkov merged commit 99e43c4 into piskvorky:develop Aug 22, 2022
@mpenkov
Copy link
Collaborator

mpenkov commented Aug 22, 2022

Merged. Thank you @hstk30 !!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Install gensim fails because C code is not ANSI-compliant
3 participants