Question on writing a windbg extension

I am writing an (old-style) windbg extension to process some of our data
structures. One of the things I want to do is to walk a linked list
given a starting node whose address is specified by the user. Given
this user supplied address, I use ReadMemory() to read in the entire
(starting) node. I then pick up the link to the next node and then use
ReadMemory() using this value. However, windbg prints out the following
msg:

VirtualToOffset: 8271c978 not properly sign extended

Where ‘8271c978’ appears to be the correct value if I dump the complete
node by hand. I tried to assign the offset used by ReadMemory() to an
unsigned long but that gives the same results.

Anyone know what is the proper way to pick up a memory address out of a
data structure so that one can then pass it into ReadMemory() so that it
won’t complain?

thanks