Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwerner committed Mar 4, 2024
1 parent 95abffe commit 00085fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qubic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ static void processBroadcastMessage(const unsigned long long processorNumber, Re
if (k == system.numberOfSolutions)
{
if (system.numberOfSolutions < MAX_NUMBER_OF_SOLUTIONS
&& (*score)(processorNumber, request->destinationPublicKey, solution_nonce) >= solutionThreshold[system.epoch])
&& (*score)(processorNumber, request->destinationPublicKey, solution_nonce) >= (unsigned int)solutionThreshold[system.epoch])
{
ACQUIRE(solutionsLock);

Expand Down
2 changes: 1 addition & 1 deletion src/score.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ struct ScoreFunction
score = 0;
#endif

const unsigned long long solutionBufIdx = processor_Number % solutionBufferCount;
const int solutionBufIdx = (int)(processor_Number % solutionBufferCount);
ACQUIRE(solutionEngineLock[solutionBufIdx]);

auto& neurons = _neurons[solutionBufIdx];
Expand Down

0 comments on commit 00085fa

Please sign in to comment.