- refraing from using magic numbers like 0xffffffff all over the repository, rather use UINT_MAX/SIZE_MAX ..
- minor re-formatting and refactoring at some old code spots. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@970 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
+2
-2
@@ -248,11 +248,11 @@ public:
|
||||
/** Setup a temporary read limit
|
||||
*
|
||||
* @param limit Maximum number of bytes to be read from
|
||||
* the beginning of the file. Passing 0xffffffff
|
||||
* the beginning of the file. Specifying UINT_MAX
|
||||
* resets the limit to the original end of the stream. */
|
||||
void SetReadLimit(unsigned int _limit) {
|
||||
|
||||
if (0xffffffff == _limit) {
|
||||
if (UINT_MAX == _limit) {
|
||||
limit = end;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user