Skip to content

Commit e262b9e

Browse files
patricejianghuangwei1024
patricejiang
authored andcommitted
remove assertions
1 parent 73fcb70 commit e262b9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cocos/base/CCData.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ ssize_t Data::getSize() const
108108

109109
ssize_t Data::copy(const unsigned char* bytes, const ssize_t size)
110110
{
111-
CCASSERT(size >= 0, "copy size should be non-negative");
112-
CCASSERT(bytes, "bytes should not be nullptr");
111+
//CCASSERT(size >= 0, "copy size should be non-negative");
112+
//CCASSERT(bytes, "bytes should not be nullptr");
113113

114114
if (size <= 0) return 0;
115115

0 commit comments

Comments
 (0)