Ticket #11991: 0003-Fix-GCC-5-narrowing-conversion-warning.patch

File 0003-Fix-GCC-5-narrowing-conversion-warning.patch, 925 bytes (added by mt, 9 years ago)
  • src/add-ons/kernel/bus_managers/firewire/fwohci.cpp

    From 8f0de1d90df8a1cb356290b0bdaa75ce5000c37d Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Sun, 19 Apr 2015 17:59:07 +0900
    Subject: [PATCH 3/6] Fix GCC 5 narrowing conversion warning.
    
    ---
     src/add-ons/kernel/bus_managers/firewire/fwohci.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/add-ons/kernel/bus_managers/firewire/fwohci.cpp b/src/add-ons/kernel/bus_managers/firewire/fwohci.cpp
    index e79b1ae..d8a6301 100644
    a b char fwohcicode[32][0x20]={  
    8787
    8888#define MAX_SPEED 3
    8989extern const char *const linkspeed[];
    90 uint32_t tagbit[4] = { 1 << 28, 1 << 29, 1 << 30, 1 << 31};
     90uint32_t tagbit[4] = { 1 << 28, 1 << 29, 1 << 30, (uint32_t)(1 << 31)};
    9191
    9292static struct tcode_info tinfo[] = {
    9393/*      hdr_len block   flag    valid_response */