Ticket #12824: 0010-utility.cpp-fix-clang-warnings.patch

File 0010-utility.cpp-fix-clang-warnings.patch, 884 bytes (added by mt, 8 years ago)
  • src/add-ons/kernel/partitioning_systems/gpt/utility.cpp

    From e811333cc6b17e28316b07484b41744c2feaa49a Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Sun, 19 Jun 2016 19:53:13 +0900
    Subject: [PATCH 10/13] utility.cpp: fix clang warnings.
    
    ---
     src/add-ons/kernel/partitioning_systems/gpt/utility.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/add-ons/kernel/partitioning_systems/gpt/utility.cpp b/src/add-ons/kernel/partitioning_systems/gpt/utility.cpp
    index 4564377..813429c 100644
    a b void  
    3838to_utf8(const uint16* from, size_t maxFromLength, char* to, size_t toSize)
    3939{
    4040    for (uint32 i = 0; i < maxFromLength; i++) {
    41         uint16 c = B_LENDIAN_TO_HOST_INT16(from[i]);
     41        uint32 c = B_LENDIAN_TO_HOST_INT32(from[i]);
    4242        if (!c)
    4343            break;
    4444