diff --git a/pkg/urbit/include/ur/bitstream.h b/pkg/urbit/include/ur/bitstream.h index 7ca513352..5a6d5239c 100644 --- a/pkg/urbit/include/ur/bitstream.h +++ b/pkg/urbit/include/ur/bitstream.h @@ -5,8 +5,9 @@ typedef enum { ur_cue_good = 0, - ur_cue_gone = 1, - ur_cue_meme = 2 + ur_cue_back = 1, + ur_cue_gone = 2, + ur_cue_meme = 3 } ur_cue_res_e; typedef enum { diff --git a/pkg/urbit/ur/serial.c b/pkg/urbit/ur/serial.c index 71b14222e..5a945072d 100644 --- a/pkg/urbit/ur/serial.c +++ b/pkg/urbit/ur/serial.c @@ -174,10 +174,8 @@ _cue_next(ur_root_t *r, else { uint64_t val, bak = ur_bsr64_any(bsr, len); - // XX distinguish bad backref? - // if ( !ur_dict64_get(r, dict, bak, &val) ) { - return ur_cue_gone; + return ur_cue_back; } *out = (ur_nref)val; @@ -356,12 +354,9 @@ _cue_test_next(_cue_test_stack_t *s, } else { uint64_t bak = ur_bsr64_any(bsr, len); - - // XX distinguish bad backref? - // return ur_dict_get((ur_root_t*)0, dict, bak) ? ur_cue_good - : ur_cue_gone; + : ur_cue_back; } }