bugQtLua script engine for Qt - Bugs: bug #36370, Bitwise OR instead of logical.

 
 

bug #36370: Bitwise OR instead of logical.

Submitter:  Sergey <z80>
Submitted:  Wed 02 May 2012 12:37:59 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 28 May 2012 05:01:07 PM UTC, comment #1: 

Fixed, thanks for reporting.

Alexandre Becoulet <diaxen>
Group administrator
Wed 02 May 2012 12:37:59 PM UTC, original submission:  

It seems to me there is an error in line 98 of file qluaproxydispatch.cc. IMHO there should be bitwize OR but not a logical one.

  bool DispatchProxy::meta_contains(State &ls, const Value &key)
  {
    foreach (const TargetBase *t, _targets)
      {
if ((t->_ops & (Value::OpIndex | Value::OpNewindex)) &&
    (t->_support(Value::OpIndex) || t->_support(Value::OpNewindex)) &&
    t->_meta_contains(ls, key))
  return true;
      }

    return false;
  }

Sergey <z80>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by diaxen (Posted a comment)
  • -email is unavailable- added by z80 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-05-28 diaxen StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code