@@ -131,7 +131,7 @@ int test_strcasestr_s()
131
131
132
132
/* compare to legacy */
133
133
std_sub = strcasestr (str1 , str2 );
134
- if ((int )sub != (int )std_sub ) { // comparison to handle 32-bit library return and 64-bit library return
134
+ if ((intptr_t )sub != (intptr_t )std_sub ) { // comparison to handle 32-bit library return and 64-bit library return
135
135
printf ("%s %u Error strcasestr_s() does not have same return as strcasestr() when str1 & str2 are zero length strings. rc=%u \n" ,
136
136
__FUNCTION__ , __LINE__ , rc );
137
137
printf ("str1:[%s]\n" , str1 );
@@ -158,7 +158,7 @@ int test_strcasestr_s()
158
158
159
159
/* compare to legacy */
160
160
std_sub = strcasestr (str1 , str2 );
161
- if ((int )sub != (int )std_sub ) { // comparison to handle 32-bit library return and 64-bit library return
161
+ if ((intptr_t )sub != (intptr_t )std_sub ) { // comparison to handle 32-bit library return and 64-bit library return
162
162
printf ("%s %u Error strcasestr_s() does not have same return value as strcasestr() when str2 is zero length string. rc=%u \n" ,
163
163
__FUNCTION__ , __LINE__ , rc );
164
164
printf ("str1:[%s]\n" , str1 );
@@ -186,7 +186,7 @@ int test_strcasestr_s()
186
186
187
187
/* compare to legacy */
188
188
std_sub = strcasestr (str1 , str2 );
189
- if ((int )sub != (int )std_sub ) { // comparison to handle 32-bit library return and 64-bit library return
189
+ if ((intptr_t )sub != (intptr_t )std_sub ) { // comparison to handle 32-bit library return and 64-bit library return
190
190
printf ("%s %u Error strcasestr_s() does not have same return value as strcasestr() when str2 is zero length string. rc=%u \n" ,
191
191
__FUNCTION__ , __LINE__ , rc );
192
192
printf ("str1:[%s]\n" , str1 );
@@ -268,7 +268,7 @@ int test_strcasestr_s()
268
268
269
269
/* compare to legacy */
270
270
std_sub = strcasestr (str1 , str2 );
271
- if ((int )sub != (int )std_sub ) { // comparison to handle 32-bit library return and 64-bit library return
271
+ if ((intptr_t )sub != (intptr_t )std_sub ) { // comparison to handle 32-bit library return and 64-bit library return
272
272
printf ("%s %u Error strcasestr_s() does not have same return value as strcasestr() when str2 is substring of the end of str1. rc=%u \n" ,
273
273
__FUNCTION__ , __LINE__ , rc );
274
274
printf ("str1:[%s]\n" , str1 );
@@ -299,7 +299,7 @@ int test_strcasestr_s()
299
299
300
300
/* compare to legacy */
301
301
std_sub = strcasestr (str1 , str2 );
302
- if ((int )sub != (int )std_sub ) { // comparison to handle 32-bit library return and 64-bit library return
302
+ if ((intptr_t )sub != (intptr_t )std_sub ) { // comparison to handle 32-bit library return and 64-bit library return
303
303
printf ("%s %u Error strcasestr_s() does not have same return value as strcasestr() when str2 is substring of middle of str1. rc=%u \n" ,
304
304
__FUNCTION__ , __LINE__ , rc );
305
305
printf ("str1:[%s]\n" , str1 );
@@ -424,7 +424,7 @@ int test_strcasestr_s()
424
424
425
425
/* compare to legacy */
426
426
std_sub = strcasestr (str1 , str2 );
427
- if ((int )sub != (int )std_sub ) { // comparison to handle 32-bit library return and 64-bit library return
427
+ if ((intptr_t )sub != (intptr_t )std_sub ) { // comparison to handle 32-bit library return and 64-bit library return
428
428
printf ("%s %u Error rc=%u \n" ,
429
429
__FUNCTION__ , __LINE__ , rc );
430
430
}
0 commit comments