Skip to content

Commit

Permalink
- Fixed bug in isSingleton function
Browse files Browse the repository at this point in the history
  • Loading branch information
maximecb committed Oct 10, 2012
1 parent aeecf9f commit 9823a8d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/analysis/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,8 @@ TypeAnalysis.prototype.compTypeStats = function ()
{
var fl = type.flags;

return (
((fl & ~TypeFlags.OBJEXT) && type.getNumObjs() == 1) ||
var v = (
((fl & ~TypeFlags.EXTOBJ) === 0 && type.getNumObjs() === 1) ||
(fl === TypeFlags.TRUE) ||
(fl === TypeFlags.FALSE) ||
(fl === TypeFlags.NULL) ||
Expand All @@ -429,6 +429,10 @@ TypeAnalysis.prototype.compTypeStats = function ()
(fl === TypeFlags.INT) ||
(fl === TypeFlags.FLOAT)
);

//print(type + ' => ' + v);

return v;
}

addStat(
Expand Down

0 comments on commit 9823a8d

Please sign in to comment.