Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
a1560406
by Alexei Podtelezhnikov at 2021-10-05T14:19:06-04:00
2 changed files:
Changes:
... | ... | @@ -313,8 +313,7 @@ |
313 | 313 |
file,
|
314 | 314 |
0 );
|
315 | 315 |
|
316 |
- /* on some RTOS, mmap might return 0 */
|
|
317 |
- if ( (long)stream->base != -1 && stream->base != NULL )
|
|
316 |
+ if ( stream->base != MAP_FAILED )
|
|
318 | 317 |
stream->close = ft_close_stream_by_munmap;
|
319 | 318 |
else
|
320 | 319 |
{
|
... | ... | @@ -246,7 +246,7 @@ |
246 | 246 |
file,
|
247 | 247 |
0 );
|
248 | 248 |
|
249 |
- if ( (long)stream->base == -1 )
|
|
249 |
+ if ( stream->base == MAP_FAILED )
|
|
250 | 250 |
{
|
251 | 251 |
FT_ERROR(( "FT_Stream_Open:" ));
|
252 | 252 |
FT_ERROR(( " could not `mmap' file `%s'\n", filepathname ));
|