tried changing history buffer to just an unsigned integer, getting crazy compiler warning though unrecognized x86