Changeset 402 for trunk/nv/base/capi.hh


Ignore:
Timestamp:
06/13/15 21:51:27 (10 years ago)
Author:
epyon
Message:
  • cleanups of clang warnings (gotta love them all)
  • only nv-core for now (this will take a while for the whole source)
  • mainly C++ casts instead of C-style casts, but also a few bugs fixed!
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/base/capi.hh

    r397 r402  
    1212 * This header is temporary
    1313 */
     14
     15// TODO: sanity checking with NV_DEBUG_ASSERT
    1416
    1517#ifndef NV_BASE_CAPI_HH
     
    110112        inline void* nvmemset( void *dest, unsigned char value, size_t count )
    111113        {
    112                 return NV_CAPI_CALL( memset )( dest, (int)value, count );
     114                return NV_CAPI_CALL( memset )( dest, static_cast<int>( value ), count );
    113115        }
    114116
    115117        inline void* nvmemchr( const void *src, unsigned char value, size_t max_count )
    116118        {
    117                 return NV_CAPI_CALL( memchr )( src, (int)value, max_count );
     119                return NV_CAPI_CALL( memchr )( src, static_cast<int>( value ), max_count );
    118120        }
    119121
Note: See TracChangeset for help on using the changeset viewer.