he drew the last swallow of brandy from his hooped wooden tankard and instinctively shifted his gaze aloft , squinting against the midday sun to watch as two bosun 's mates edged along the yards to furl the mainsail .