diff --git a/SNAPLib/AlignerContext.cpp b/SNAPLib/AlignerContext.cpp index 89c16f26..bdd3dc65 100644 --- a/SNAPLib/AlignerContext.cpp +++ b/SNAPLib/AlignerContext.cpp @@ -376,7 +376,7 @@ AlignerContext::printStats() (stats->filtered > 0) ? numPctAndPad(filtered, stats->filtered, 100.0 * stats->filtered / stats->totalReads, 23, strBufLen) : "", (stats->extraAlignments > 0) ? FormatUIntWithCommas(stats->extraAlignments, extraAlignments, strBufLen) : "", isPaired() ? pctAndPad(pctPairs, 100.0 * stats->alignedAsPairs / stats->totalReads, 7, strBufLen) : "", - FormatUIntWithCommas((unsigned _int64)(1000 * stats->totalReads / max(alignTime, (_int64)1)), readsPerSecond, strBufLen), // Aligntime is in ms + FormatUIntWithCommas((_uint64)(1000 * stats->totalReads / max(alignTime, (_int64)1)), readsPerSecond, strBufLen), // Aligntime is in ms FormatUIntWithCommas((alignTime + 500) / 1000, alignTimeString, strBufLen) ); diff --git a/SNAPLib/Compat.cpp b/SNAPLib/Compat.cpp index c74e7491..aa3e34bf 100644 --- a/SNAPLib/Compat.cpp +++ b/SNAPLib/Compat.cpp @@ -219,7 +219,7 @@ bool WaitForEventWithTimeout(EventObject *eventObject, _int64 timeoutInMillis) void BindThreadToProcessor(unsigned processorNumber) // This hard binds a thread to a processor. You can no-op it at some perf hit. { - if (!SetThreadAffinityMask(GetCurrentThread(),((unsigned _int64)1) << processorNumber)) { + if (!SetThreadAffinityMask(GetCurrentThread(),((_uint64)1) << processorNumber)) { WriteErrorMessage("Binding thread to processor %d failed, %d\n",processorNumber,GetLastError()); } } diff --git a/SNAPLib/LandauVishkin.cpp b/SNAPLib/LandauVishkin.cpp index a68512d3..e6f8de32 100644 --- a/SNAPLib/LandauVishkin.cpp +++ b/SNAPLib/LandauVishkin.cpp @@ -51,7 +51,7 @@ bool writeCigar(char** o_buf, int* o_buflen, int count, char code, CigarFormat f } int written = snprintf(*o_buf, *o_buflen, "%d%c", count, code); if (written > *o_buflen - 1) { - *o_buf = '\0'; + **o_buf = '\0'; return false; } else { *o_buf += written;