daokoder / dao-modules

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

Typo mistake in dao_xxtea.c #2

Closed dumblob closed 11 years ago

dumblob commented 11 years ago

There is a missing argument on line 86 in dao_xxtea.c and thus it can not be compiled.

[ 86%] Building C object modules/string/CMakeFiles/dao_xxtea.dir/xxtea/dao_xxtea.c.o
/home/honza/smazat/dao/dao.cmake/modules/string/xxtea/dao_xxtea.c: In function ‘STR_Cipher’:
/home/honza/smazat/dao/dao.cmake/modules/string/xxtea/dao_xxtea.c:86:2: error: too few arguments to function ‘DString_Detach’
In file included from /home/honza/smazat/dao/dao.cmake/modules/string/xxtea/dao_xxtea.c:31:0:
/home/honza/smazat/dao/dao.cmake/kernel/daoString.h:53:14: note: declared here
make[2]: *** [modules/string/CMakeFiles/dao_xxtea.dir/xxtea/dao_xxtea.c.o] Error 1
make[1]: *** [modules/string/CMakeFiles/dao_xxtea.dir/all] Error 2
make: *** [all] Error 2

The following will probably fix it.

sed -i -r '86s/ self / self, self->size /' modules/string/xxtea/dao_xxtea.c
daokoder commented 11 years ago

Fixed.