freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][master] [builds/unix, builds/vms] Standardize `


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] [builds/unix, builds/vms] Standardize `mmap` failure.
Date: Tue, 05 Oct 2021 18:24:04 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

2 changed files:

Changes:

  • builds/unix/ftsystem.c
    ... ... @@ -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
         {
    

  • builds/vms/ftsystem.c
    ... ... @@ -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 ));
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]