Hi Luke,

I think I was thinking along the lines of using intptr_t as we're storing this value in a pointer later on (and intptr_t is defined as size of a pointer.) Figured to save a cast further down, then I forgot to remove the cast!

I've rewritten to be a bit more explicit about what's going on in bb144a11, how is that?