Danyl-Nysom/2150Assignment06 — Issue #2: c-style cast is not safe
Author: variousauthors
Created: 2011-11-29 07:18:56+00:00
State: open

On line 35 of Hash.cpp you included the statement

`float trials_per_percent_interval = MAX_TRIALS / (float)(100 / PERCENT_INTERVAL) + 1;`

in particular I am distressed by `(float)(100 / PERCENT_INTERVAL) + 1` which should really be `static_cast(100 / PERCENT_INTERVAL) + 1`

For further discussion on static_cast see [this](http://stackoverflow.com/questions/103512/in-c-why-use-static-castintx-instead-of-intx "In C++, why use static_cast instead of c-style?") question on SO.