lkml.org 
[lkml]   [2005]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [resend][PATCH] avoid signed vs unsigned comparison in efi_range_is_wc()
    On Thu, 16 Jun 2005, Richard B. Johnson wrote:

    >
    > Well long and int are the same size on ix86. What you really need
    > is 'size_t' for counters. That's the largest unsigned integer that
    > will fit in a register on the target platform. It is platform-
    > specific, therefore defined in stddef.h. No index or return-value
    > is supposed to be larger than what can be represented in size_t,
    > therefore it is a good type to use.
    >
    > Note that on 64-bit platforms, size_t will be larger than an unsigned
    > int. This is good.
    >
    Good info, thanks Richard.

    --
    Jesper


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-06-16 23:06    [W:0.037 / U:61.816 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site