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

Fixed broken build on 32-bit systems #920

Merged
merged 1 commit into from
Apr 12, 2020

Conversation

chenguokai
Copy link
Collaborator

Fixes #919

src/common.c Outdated Show resolved Hide resolved
src/common.c Outdated Show resolved Hide resolved
@Nightwalker-87 Nightwalker-87 changed the title Fix 32 bit build on develop branch Fixed broken build on 32-bit systems Apr 12, 2020
@Nightwalker-87 Nightwalker-87 self-requested a review April 12, 2020 09:14
@Nightwalker-87 Nightwalker-87 added this to the v1.6.1 milestone Apr 12, 2020
@slyshykO
Copy link
Collaborator

slyshykO commented Apr 12, 2020

I think we should add such configuration to Travis build.
I mean configuration that causes issues, that this PR try to fix.

UPDATE:
I think this config should be 64bit Linux with 32bit clang.

@Nightwalker-87
Copy link
Member

Yes @slyshykO, it should be regularly tested with Travis. I agree on that.

@Nightwalker-87
Copy link
Member

Thanks for fixing this! 👍

To be honest, we should change some variables to the appropriate sizes / datatypes. The requirement for manual casts not only here, but at several places throughout the codebase, indicates that something is not as it is supposed to be per design. If implemented nicely, there hardly is any need for explicit casting. I'd like to see that addressed in v1.6.2 at a later point in time, maybe within #909.

@Nightwalker-87 Nightwalker-87 merged commit f7565d0 into stlink-org:develop Apr 12, 2020
@stlink-org stlink-org locked as resolved and limited conversation to collaborators May 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Build on 32-bit systems is broken again
3 participants