@@ -811,15 +811,15 @@ static REBSER *Read_All_File(char *fname)
811
811
REBCHR * eq ;
812
812
REBSER * blk ;
813
813
814
- while ((n = LEN_STR (str ))) {
814
+ while ((n = ( REBCNT ) LEN_STR (str ))) {
815
815
len ++ ;
816
816
str += n + 1 ; // next
817
817
}
818
818
819
819
blk = Make_Block (len * 2 );
820
820
821
821
str = start ;
822
- while (NZ (eq = FIND_CHR (str + 1 , '=' )) && NZ (n = LEN_STR (str ))) {
822
+ while (NZ (eq = FIND_CHR (str + 1 , '=' )) && NZ (n = ( REBCNT ) LEN_STR (str ))) {
823
823
Set_Series (REB_STRING , Append_Value (blk ), Copy_OS_Str (str , eq - str ));
824
824
Set_Series (REB_STRING , Append_Value (blk ), Copy_OS_Str (eq + 1 , n - (eq - str )- 1 ));
825
825
str += n + 1 ; // next
@@ -871,7 +871,7 @@ static REBSER *Read_All_File(char *fname)
871
871
REBSER * blk ;
872
872
REBSER * dir ;
873
873
874
- while (n = LEN_STR (str )) {
874
+ while (n = ( REBCNT ) LEN_STR (str )) {
875
875
len ++ ;
876
876
str += n + 1 ; // next
877
877
}
@@ -880,7 +880,7 @@ static REBSER *Read_All_File(char *fname)
880
880
881
881
// First is a dir path or full file path:
882
882
str = start ;
883
- n = LEN_STR (str );
883
+ n = ( REBCNT ) LEN_STR (str );
884
884
885
885
if (len == 1 ) { // First is full file path
886
886
dir = To_REBOL_Path (str , n , -1 , 0 );
@@ -890,7 +890,7 @@ static REBSER *Read_All_File(char *fname)
890
890
dir = To_REBOL_Path (str , n , -1 , TRUE);
891
891
str += n + 1 ; // next
892
892
len = dir -> tail ;
893
- while (n = LEN_STR (str )) {
893
+ while (n = ( REBCNT ) LEN_STR (str )) {
894
894
dir -> tail = len ;
895
895
Append_Uni_Uni (dir , str , n );
896
896
Set_Series (REB_FILE , Append_Value (blk ), Copy_String (dir , 0 , -1 ));
@@ -948,7 +948,7 @@ static REBSER *Read_All_File(char *fname)
948
948
Set_Block (D_RET , ser );
949
949
}
950
950
else {
951
- ser = To_REBOL_Path (fr .files , LEN_STR (fr .files ), OS_WIDE , 0 );
951
+ ser = To_REBOL_Path (fr .files , ( REBCNT ) LEN_STR (fr .files ), OS_WIDE , 0 );
952
952
Set_Series (REB_FILE , D_RET , ser );
953
953
}
954
954
} else
@@ -1015,7 +1015,7 @@ static REBSER *Read_All_File(char *fname)
1015
1015
success = OS_SET_ENV (cmd , value );
1016
1016
if (success ) {
1017
1017
// What function could reuse arg2 as-is?
1018
- Set_String (D_RET , Copy_OS_Str (value , LEN_STR (value )));
1018
+ Set_String (D_RET , Copy_OS_Str (value , ( REBCNT ) LEN_STR (value )));
1019
1019
return R_RET ;
1020
1020
}
1021
1021
return R_UNSET ;
0 commit comments