Changeset 8937:9645b18b2b07 in orange


Ignore:
Timestamp:
09/09/11 14:12:32 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
3f5334d1965e90ab0e58d95bbf0169e4cae9999d
Message:

Fixed Value pickling in case the valueType is invalid (e.g. 127 if default Value is default constructed).
The pickled flags would in that case also signal that the value has svalV and would read from the otherValues (which is None).
This would raise an 'SystemError: Objects/listobject.c:182: bad argument to internal function'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/cls_value.cpp

    r8735 r8937  
    990990 
    991991  if (value.valueType) { 
    992     buf.writeChar(svalFlag | (value.valueType & 0x3f)); 
     992    buf.writeChar(svalFlag | (value.valueType & 0x1f)); 
    993993    return true; 
    994994  } 
Note: See TracChangeset for help on using the changeset viewer.