Commit 971dcd9d authored by Kristof Szabados's avatar Kristof Szabados
Browse files

the last sign comparision warnings removed.


Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent b4f039e9
......@@ -1256,7 +1256,7 @@ LOG_ALL {
<SC_MODULE_PARAMETERS>{ASN1LOWERIDENTIFIER} {
yylval.str_val = mcopystr(yytext);
for (size_t i = 0; i < yyleng; i++) {
for (size_t i = 0; i < (size_t)yyleng; i++) {
if (yylval.str_val[i] == '-') yylval.str_val[i] = '_';
}
TTCN_warning("In line %d of configuration file: `%s' is not a valid TTCN-3 "
......
......@@ -714,7 +714,7 @@ WARNING_UNQUALIFIED RETURN(LoggingBit);
<SC_MODULE_PARAMETERS>{ASN1LOWERIDENTIFIER} {
char *ttcn3_id = (char*)Malloc(yyleng + 1);
for (size_t i = 0; i < yyleng; i++) {
for (size_t i = 0; i < (size_t)yyleng; i++) {
if (yytext[i] == '-') ttcn3_id[i] = '_';
else ttcn3_id[i] = yytext[i];
}
......@@ -728,7 +728,9 @@ WARNING_UNQUALIFIED RETURN(LoggingBit);
<SC_GROUPS,SC_COMPONENTS,SC_MAIN_CONTROLLER>{DNSNAME}|{IPV6} {
yylval.str_val = (char*)Malloc(yyleng + 1);
for (size_t i = 0; i < yyleng; i++) yylval.str_val[i] = tolower(yytext[i]);
for (size_t i = 0; i < (size_t)yyleng; i++) {
yylval.str_val[i] = tolower(yytext[i]);
}
yylval.str_val[yyleng] = '\0';
RETURN(DNSName);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment