Ticket #11564: 0002-Removed-implicit-conversion-to-int32-CID-1251478.patch

File 0002-Removed-implicit-conversion-to-int32-CID-1251478.patch, 753 bytes (added by tgkokk, 9 years ago)
  • src/bin/screeninfo.cpp

    From 22751bf211078ba0487fa30310cb23a537aac52c Mon Sep 17 00:00:00 2001
    From: Theodore Kokkoris <t.kokkoris@gmail.com>
    Date: Wed, 3 Dec 2014 18:20:09 +0000
    Subject: [PATCH] Removed implicit conversion to int32 (CID: 1251478)
    
    ---
     src/bin/screeninfo.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/bin/screeninfo.cpp b/src/bin/screeninfo.cpp
    index 2403cc8..88850ae 100644
    a b main()  
    2929        accelerant_device_info info;
    3030
    3131        // At the moment, screen.ID() is always 0;
    32         printf("Screen %d:", screen.ID());
     32        printf("Screen %" B_PRId32 ":", screen.ID().id);
    3333        if (screen.GetDeviceInfo(&info) != B_OK) {
    3434            printf(" unavailable\n");
    3535        } else {