This makes get_delta_base() return the error code as the return value and the delta base as an out-parameter.