Changeset ce3386cd in rtems for cpukit/librpc


Ignore:
Timestamp:
May 29, 2010, 4:27:20 AM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
6b2c3f11
Parents:
21d9736
Message:

2010-05-29 Ralf Corsépius <ralf.corsepius@…>

  • librpc/src/xdr/xdr_mem.c (xdr_memcreate): Cast addr to uintptr_t instead of size_t.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/librpc/src/xdr/xdr_mem.c

    r21d9736 rce3386cd  
    9595xdrmem_create(
    9696        XDR *xdrs,
    97         caddr_t addr,
     97        char * addr,
    9898        u_int size,
    9999        enum xdr_op op)
     
    101101
    102102        xdrs->x_op = op;
    103         xdrs->x_ops = ((size_t)addr & (sizeof(int32_t) - 1))
     103        xdrs->x_ops = ((uintptr_t)addr & (sizeof(int32_t) - 1))
    104104                ? &xdrmem_ops_unaligned : &xdrmem_ops_aligned;
    105105        xdrs->x_private = xdrs->x_base = addr;
Note: See TracChangeset for help on using the changeset viewer.