Fix target calculation from diff < 1.0 in test_hash()
Merge pull request #539 from dvitas/bfgminer

Bugfix: Fix target calculation from diff < 1.0 in test_hash()