Commit 1b72983 1 parent 0ca26c9 commit 1b72983 Copy full SHA for 1b72983
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
%option prefix="yy"
2
2
%{
3
3
/*
4
- * Copyright (c) 1999-2024 Stephen Williams (steve@icarus.com)
4
+ * Copyright (c) 1999-2025 Stephen Williams (steve@icarus.com)
5
5
*
6
6
* This source code is free software; you can redistribute it
7
7
* and/or modify it in source code form under the terms of the GNU
@@ -1080,17 +1080,17 @@ static void def_add_arg(void)
1080
1080
to us to chop it up to name and value. */
1081
1081
if ( (val=strchr (arg,' =' )) ) {
1082
1082
*val++ = 0 ;
1083
- while (*val && isspace (*val)) val += 1 ;
1083
+ while (*val && isspace (( int ) *val)) val += 1 ;
1084
1084
1085
1085
val_length = strlen (val);
1086
- while (val_length>0 && isspace (val[val_length-1 ])) {
1086
+ while (val_length>0 && isspace (( int ) val[val_length-1 ])) {
1087
1087
val_length -= 1 ;
1088
1088
val[val_length] = 0 ;
1089
1089
}
1090
1090
1091
1091
/* Strip white space from between arg and "=". */
1092
1092
length = strlen (arg);
1093
- while (length>0 && isspace (arg[length-1 ])) {
1093
+ while (length>0 && isspace (( int ) arg[length-1 ])) {
1094
1094
length -= 1 ;
1095
1095
arg[length] = 0 ;
1096
1096
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2012-2021 Stephen Williams (steve@icarus.com)
2
+ * Copyright (c) 2012-2025 Stephen Williams (steve@icarus.com)
3
3
*
4
4
* This source code is free software; you can redistribute it
5
5
* and/or modify it in source code form under the terms of the GNU
@@ -151,7 +151,7 @@ static PLI_INT32 atoi_calltf(ICARUS_VPI_CONST PLI_BYTE8*name)
151
151
vpi_get_value (arg , & value );
152
152
const char * bufp = value .value .str ;
153
153
while (bufp && * bufp ) {
154
- if (isdigit (* bufp )) {
154
+ if (isdigit (( int ) * bufp )) {
155
155
res = (res * 10 ) + (* bufp - '0' );
156
156
bufp += 1 ;
157
157
} else if (* bufp == '_' ) {
You can’t perform that action at this time.
0 commit comments