Fix win64 compile errors (ambiguous comparisons between unsigned_int and uint16)

This commit is contained in:
Eric Frias 2015-06-22 14:56:40 -04:00
parent 816ad4b7a6
commit 52a72cdd9f

View file

@ -55,8 +55,8 @@ void_result assert_evaluator::do_evaluate( const assert_operation& o )
unsigned_int t;
fc::raw::unpack( is, t );
// everyone checks: delegates must have allocated an opcode for it
FC_ASSERT( t < _db.get_global_properties().parameters.max_predicate_opcode );
if( t >= predicate::count() )
FC_ASSERT( t.value < _db.get_global_properties().parameters.max_predicate_opcode );
if( t.value >= predicate::count() )
{
//
// delegates allocated an opcode, but our client doesn't know