Please, either add a cast to `gauge_t` here or make the *memory* a `gauge_t` and do that cast when calling *memory_submit()*.