Fixed calculation error.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1643 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: DSet.java,v 1.18 2002/08/14 19:07:55 mdb Exp $
|
// $Id: DSet.java,v 1.19 2002/08/14 23:52:15 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.presents.dobj;
|
package com.threerings.presents.dobj;
|
||||||
|
|
||||||
@@ -171,7 +171,7 @@ public class DSet
|
|||||||
|
|
||||||
// expand our entries array if necessary
|
// expand our entries array if necessary
|
||||||
int elength = _entries.length;
|
int elength = _entries.length;
|
||||||
if (_size == elength-1) {
|
if (_size >= elength) {
|
||||||
// sanity check
|
// sanity check
|
||||||
if (elength > 2048) {
|
if (elength > 2048) {
|
||||||
Log.warning("Requested to expand to questionably large size " +
|
Log.warning("Requested to expand to questionably large size " +
|
||||||
|
|||||||
Reference in New Issue
Block a user