Fix all the simple compiler warnings.
This commit is contained in:
parent
34621b054a
commit
bfa06be62d
5 changed files with 5 additions and 10 deletions
4
misc.c
4
misc.c
|
@ -27,7 +27,7 @@ void packed_to_token(long packed, char token[6])
|
|||
for (int i = 0; i < 5; ++i)
|
||||
{
|
||||
char advent = (packed >> i * 6) & 63;
|
||||
token[4 - i] = advent_to_ascii[advent];
|
||||
token[4 - i] = advent_to_ascii[(int) advent];
|
||||
}
|
||||
|
||||
// Ensure the last character is \0.
|
||||
|
@ -648,7 +648,7 @@ void TYPE(void)
|
|||
}
|
||||
|
||||
for (i=1; i<=LNLENG; i++) {
|
||||
INLINE[i]=advent_to_ascii[INLINE[i]];
|
||||
INLINE[i]=advent_to_ascii[(int) INLINE[i]];
|
||||
}
|
||||
INLINE[LNLENG+1]=0;
|
||||
printf("%s\n", INLINE+1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue