-
Notifications
You must be signed in to change notification settings - Fork 10
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
Type mismatch? #1
Comments
Which version of sdcc do You use? Could You give me output of |
I compiled this code under sdcc version 3.5 In elder version of sdcc had a problem with such type of string initializer constants. |
Fixup issue #1 which is related to older sdcc version (ver <3.5.0)
just added this fixup to master branch |
Hi, I did try to compile it with two different Linuxes. Both did give same error. One sdcc version is: SDCC : mcs51/gbz80/z80/z180/r2k/r3ka/ds390/pic16/pic14/TININative/ds400/hc08/s08 3.3.0 #8604 (Dec 30 2013) (Linux) I try it again now. |
It seems to compile now having only one warning: relay.c:173: warning 158: overflow in implicit constant conversion The compiled hex seems to work too. Thanks. |
Yes, I know about this warning. It because TL0 is byte but BAUD is a word. On value assignment, high byte is ignored by default. So the behaviour of code is right. But maybe I will fix up this warning later by adding some byte operation in this line. |
Hello,
Compiling in Linux (64-bit) gives this error:
sdcc: Generating code...
relay.c:54: error 47: indirections to different types assignment
from type 'const-char [3] code'
to type 'char fixed'
What should be changed?
The text was updated successfully, but these errors were encountered: