• R/O
  • SSH
  • HTTPS

globalbase: Commit


Commit MetaInfo

Revisão5965 (tree)
Hora2019-05-27 22:53:42
Autorjoshua

Mensagem de Log

sArray

Mudança Sumário

Diff

--- modules/tinyState/trunk/src/h/ts/c++/sArray.h (revision 5964)
+++ modules/tinyState/trunk/src/h/ts/c++/sArray.h (revision 5965)
@@ -56,8 +56,13 @@
5656 delete[] this->ary;
5757 }
5858 __TYPE& operator[](int index) {
59- if ( expand == 0 )
59+ if ( index < 0 )
60+ stdObject::panic("ARRAY OVER RUN!!");
61+ if ( expand == 0 ) {
62+ if ( index >= leng )
63+ stdObject::panic("ARRAY OVER RUN EXPAND!!");
6064 return ary[index];
65+ }
6166 if ( index >= leng )
6267 length(index+1);
6368 return ary[index];
Show on old repository browser