medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 570e172d47e0309ec191cc62aebec004b366046d
parent 91da819676cd5e2ca39277a146436d2a9a281eff
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Jan 22 11:15:15 +0200

zero -> zero_struct

Diffstat:
intrinsics.h | 2+-
launcher/main.cc | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/intrinsics.h b/intrinsics.h @@ -171,7 +171,7 @@ inline To checked_cast( const From & from ) { } template< typename T > -inline void zero( T * x ) { +inline void zero_struct( T * x ) { memset( x, 0, sizeof( T ) ); } diff --git a/launcher/main.cc b/launcher/main.cc @@ -86,7 +86,7 @@ static bool operator!=( const Version & a, const Version & b ) { static bool parse_version( Version * v, const char * str ) { int fields = sscanf( str, "%u.%u.%u.%u", &v->a, &v->b, &v->c, &v->d ); if( fields != 4 ) { - zero( v ); + zero_struct( v ); return false; } return true;