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

 
 

bug #36370: Bitwise OR instead of logical.

Submitted by:  Sergey <z80>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Fixed, thanks for reporting.

Alexandre Becoulet <diaxen>
Project 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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    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.7