← Back to team overview

cuneiform team mailing list archive

Re: Patch to prevent run-time check failure

 

On Sat, Feb 14, 2009 at 9:51 AM, Dmitry Polevoy
<openocr.polevoy@xxxxxxxxx> wrote:

> In attach a small patch to prevent run-time errors during Debug version
> execution (MSVC9 Express).

Applied and pushed, thanks.

> Does any body can make correct initialization for variable rand_seed in
> windummy.cpp? It helps to use MSVC debugger without messages (like
> assert_001.png).

Regular stdlib has a 32 bit random function, which I would use
something like this:

rand_seed.QuadPart = cast_to_64_bit_value(random()) << 32 + random();

Does MSVC have this function? Does it return 32 bit values?



References