Skip to content

Commit

Permalink
Fix warnings about int to char conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
lroathe-quicken committed Oct 5, 2022
1 parent 907be00 commit 1913598
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/a65816_Data.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,9 +621,9 @@ static void BuildOneDataLineOperand(struct source_line *current_line, char *buff

/* Adjust bit 7 */
if(current_line->operand_txt[i] == '"')
param->buffer_string[nb_byte+j] = (0x80 | current_line->operand_txt[i+1+j]);
param->buffer_string[nb_byte+j] = (char)(0x80 | current_line->operand_txt[i+1+j]);
else
param->buffer_string[nb_byte+j] = (0x7F & current_line->operand_txt[i+1+j]);
param->buffer_string[nb_byte+j] = (char)(0x7F & current_line->operand_txt[i+1+j]);
}

/* Adjust the length */
Expand Down Expand Up @@ -698,9 +698,9 @@ static void BuildOneDataLineOperand(struct source_line *current_line, char *buff
for(int i=0; i<current_line->nb_byte; i++)
{
if(current_line->operand_txt[0] == '"')
current_line->data[i] = (0x80 | current_line->operand_txt[current_line->nb_byte-i]);
current_line->data[i] = (char)(0x80 | current_line->operand_txt[current_line->nb_byte-i]);
else
current_line->data[i] = (0x7F & current_line->operand_txt[current_line->nb_byte-i]);
current_line->data[i] = (char)(0x7F & current_line->operand_txt[current_line->nb_byte-i]);
}
}
else if(!my_stricmp(current_line->opcode_txt,"CHK"))
Expand Down

0 comments on commit 1913598

Please sign in to comment.