Fix misplaced const, avoids a cast-discards-qualifiers warning