| This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104104/ |
|
Review request for kdelibs.
By Bernd Buschinski.
Description
Testing
Bugs:
276629
Diffs
|
| This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104104/ |
| kjs/array_object.cpp (Diff revision 1) | |||
|---|---|---|---|
JSValue* ArrayProtoFunc::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args) |
|||
| 393 | if ( begin < 0 ) |
393 | unsigned int begin = 0; |
Consider using uint32_t?
| kjs/array_object.cpp (Diff revision 1) | |||
|---|---|---|---|
JSValue* ArrayProtoFunc::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args) |
|||
| 395 | begin = (unsigned int)std::max<double>(start + length, 0); |
||
Don't ever use C-style casts in C++; use static_cast here instead
| kjs/array_object.cpp (Diff revision 1) | |||
|---|---|---|---|
JSValue* ArrayProtoFunc::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args) |
|||
| 397 | unsigned int deleteCount = minInt( maxInt( args[1]->toUInt32(exec), 0 ), length - begin ); |
398 | unsigned int deleteCount = (unsigned int)std::min<double>(std::max<double>(args[1]->toUInt32(exec), 0 ), length - begin); |
args[1]->toInteger() here, per 15.4.4.12 step 7
- Maks
On February 28th, 2012, 3:12 p.m., Bernd Buschinski wrote:
|
Review request for kdelibs.
By Bernd Buschinski.
|
Updated Feb. 28, 2012, 3:12 p.m. |
| This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104104/ |
|
Review request for kdelibs.
By Bernd Buschinski.
|
Updated March 21, 2012, 11:55 p.m. Changes
|
Description
Testing
Bugs:
276629
|
Diffs (updated)
|