pike.git / lib / modules / Standards.pmod / BSON.pmod / Binary.pike

version» Context lines:

pike.git/lib/modules/Standards.pmod/BSON.pmod/Binary.pike:8:    // NB: Code duplication from module.pmod to avoid circular dependencies.    private constant BINARY_OLD = 0x02;       //!    protected void create(string data, int|void subtype)    {    this::subtype = subtype;    this::data = data;    if(subtype == BINARY_OLD)    { -  if( !sscanf(data, "%-4H", data) ) +  if( !sscanf(data, "%-4H", this::data) )    throw(Error.Generic("old binary data length does not match actual data length.\n"));    }    }       int get_subtype()    {    return subtype;    }       void set_subtype(int _subtype)