ruby-changes:6770
From: nobu <ko1@a...>
Date: Thu, 31 Jul 2008 11:31:53 +0900 (JST)
Subject: [ruby-changes:6770] Ruby:r18285 (ruby_1_8, trunk): * ext/syck/syck.h (ASSERT): fix typo at r18176.
nobu 2008-07-31 11:31:33 +0900 (Thu, 31 Jul 2008) New Revision: 18285 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18285 Log: * ext/syck/syck.h (ASSERT): fix typo at r18176. Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/ext/syck/syck.h trunk/ChangeLog trunk/ext/syck/syck.h Index: ChangeLog =================================================================== --- ChangeLog (revision 18284) +++ ChangeLog (revision 18285) @@ -1,5 +1,7 @@ -Thu Jul 31 11:30:42 2008 Nobuyoshi Nakada <nobu@r...> +Thu Jul 31 11:31:29 2008 Nobuyoshi Nakada <nobu@r...> + * ext/syck/syck.h (ASSERT): fix typo at r18176. + * ext/syck/rubyext.c (rb_syck_compile): expression in ASSERT() has no effect unless debug mode. Index: ext/syck/syck.h =================================================================== --- ext/syck/syck.h (revision 18284) +++ ext/syck/syck.h (revision 18285) @@ -34,7 +34,7 @@ #if DEBUG void syck_assert( const char *, unsigned, const char * ); # define ASSERT(f) \ - (( f ) ? (void)0 syck_assert( __FILE__, __LINE__, #f ) + (( f ) ? (void)0 : syck_assert( __FILE__, __LINE__, #f )) #else # define ASSERT(f) ((void)0) #endif Index: ruby_1_8/ext/syck/syck.h =================================================================== --- ruby_1_8/ext/syck/syck.h (revision 18284) +++ ruby_1_8/ext/syck/syck.h (revision 18285) @@ -35,7 +35,7 @@ #if DEBUG void syck_assert( const char *, unsigned, const char * ); # define ASSERT(f) \ - (( f ) ? (void)0 syck_assert( __FILE__, __LINE__, #f ) + (( f ) ? (void)0 : syck_assert( __FILE__, __LINE__, #f )) #else # define ASSERT(f) ((void)0) #endif Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 18284) +++ ruby_1_8/ChangeLog (revision 18285) @@ -1,3 +1,7 @@ +Thu Jul 31 11:31:29 2008 Nobuyoshi Nakada <nobu@r...> + + * ext/syck/syck.h (ASSERT): fix typo at r18176. + Wed Jul 30 17:48:15 2008 Nobuyoshi Nakada <nobu@r...> * win32/win32.c (rb_w32_select): recalc the rest of timeout for each -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/