medfall

A super great game engine
Log | Files | Refs

commit fc3bfcbeff45adb8ccd453ce87d0465ccae2f53e
parent 75d2713a9ef04d25ed8cd3b4b86771c87737be73
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Jun 25 14:24:05 +0300

Fix shadowing warning

Diffstat:
str.h | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/str.h b/str.h @@ -43,12 +43,12 @@ public: length += min( copied, N - length - 1 ); } - void truncate( size_t len ) { - if( len >= length ) { + void truncate( size_t n ) { + if( n >= length ) { return; } - buf[ len ] = '\0'; - length = len; + buf[ n ] = '\0'; + length = n; } char & operator[]( size_t i ) {