Ticket #10396: 0007-Fix-sizeof-on-private-non-static-variable.patch

File 0007-Fix-sizeof-on-private-non-static-variable.patch, 954 bytes (added by js, 11 years ago)
  • src/kits/tracker/ViewState.cpp

    From 5cbb9b56c5e1ea386501764055085e618b209b4c Mon Sep 17 00:00:00 2001
    From: Jonathan Schleifer <js@webkeks.org>
    Date: Fri, 10 Jan 2014 21:06:46 +0100
    Subject: [PATCH 07/10] Fix sizeof on private, non static variable.
    
    ---
     src/kits/tracker/ViewState.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/kits/tracker/ViewState.cpp b/src/kits/tracker/ViewState.cpp
    index 831ccf4..5420c1d 100644
    a b BColumn::BColumn(BMallocIO* stream, int32 version, bool endianSwap)  
    119119        PRINT(("endian swapping column\n"));
    120120        fOffset = B_SWAP_FLOAT(fOffset);
    121121        fWidth = B_SWAP_FLOAT(fWidth);
    122         STATIC_ASSERT(sizeof(BColumn::fAlignment) == sizeof(int32));
     122        STATIC_ASSERT(sizeof(alignment) == sizeof(int32));
    123123        fAlignment = (alignment)B_SWAP_INT32(fAlignment);
    124124        fAttrHash = B_SWAP_INT32(fAttrHash);
    125125        fAttrType = B_SWAP_INT32(fAttrType);