Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/containers/result.c

    r20877d2 r58daf53  
    7474forall(otype T, otype E)
    7575bool ?!=?(result(T, E) this, zero_t) {
    76         return this.has_value;
     76        return !this.has_value;
    7777}
    7878
     
    100100forall(otype T, otype E)
    101101E get_error(result(T, E) * this) {
    102         assertf(!this->has_value, "attempt to get from result without error");
     102        assertf(this->has_value, "attempt to get from result without error");
    103103        return this->error;
    104104}
Note: See TracChangeset for help on using the changeset viewer.