daokoder / dao-modules

Dao Standard Modules
http://daovm.net
12 stars 5 forks source link

in file time/dao_time.c DaoTime_Equal DaoTime_NotEqual wrong index #27

Closed electricface closed 10 years ago

electricface commented 10 years ago

static void DaoTime_Equal( DaoProcess proc, DaoValue p[], int N ) { DaoTime a = (DaoTime)DaoValue_TryGetCdata( p[0] ); DaoTime b = (DaoTime)DaoValue_TryGetCdata( p[0] ); DaoProcess_PutInteger( proc, a->value == b->value ); }

static void DaoTime_NotEqual( DaoProcess proc, DaoValue p[], int N ) { DaoTime a = (DaoTime)DaoValue_TryGetCdata( p[0] ); DaoTime b = (DaoTime)DaoValue_TryGetCdata( p[0] ); DaoProcess_PutInteger( proc, a->value != b->value ); }

Night-walker commented 10 years ago

Right, thanks. Fixed.