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

Assigning struct word member from another struct word member #134

Open
james7780 opened this issue Mar 26, 2022 · 1 comment
Open

Assigning struct word member from another struct word member #134

james7780 opened this issue Mar 26, 2022 · 1 comment

Comments

@james7780
Copy link

I have noticed that assigning a member variable (word type) of one struct from the word member variable of another (different) struct does not seem to work.

eg: If we have:
struct STRUCT1 { word a }
struct STRUCT2 { word b }
pointer.STRUCT1 pS1
pointer.STRUCT2 pS2

then
pS1->a = pS2->b
does not result in the correct value in pS1->a

@KarolS
Copy link
Owner

KarolS commented Mar 27, 2022

I tried replicating the issue, but it worked correctly (I tested both the current codebase on all platforms, as Millfork 0.3.24 on C64 and ZXS).

Could you provide more details?

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