DLR-SR / Noise

Modelica library for generating stochastic signals to be included in the Modelica Standard Library
9 stars 11 forks source link

Fix C code #23

Closed tbeu closed 10 years ago

tbeu commented 10 years ago

Please test!

tbeu commented 10 years ago

@sjoelund and authors: Updated patch includes proposed fix from #24 to use stdint.h. It also fixes the arguments of NOISE_shuffleDouble.

Compilation was tested with MSVC6, VS2010, BCC55 on Win and GCC 4 on Linux.

sjoelund commented 10 years ago

Pretty good, though I would prefer a typedef rather than a define (or using uint32_t directly, unless stdint.h was not available).

tbeu commented 10 years ago

Sure, but typedef fails on BCC55 why I changed it back to macro.

tbeu commented 10 years ago

@sjoelund OK, fixed in updated patch.

sjoelund commented 10 years ago

I closed #23 in favour of this patch

akloeckner commented 10 years ago

Thanks a lot! The patch works here, too. I will go ahead and merge it!