Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove pointless assertion check.

Checking an assertion on an enum generates a warning.  I don't think
the compiler should be warning here since it's an assertion, but
it does and seeing the warning is annoying.
  • Loading branch information...
commit 88ae3b3fc92ebfb0ece0427d95c374525133ca1f 1 parent 4fcfa25
@ingenthr authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  metrics.c
View
2  metrics.c
@@ -79,7 +79,7 @@ static int compare(const void *p1, const void *p2)
* External interface
*/
void record_tx(enum TxnType tx_type, hrtime_t tx_time, struct thread_context *ctx) {
- assert(tx_type >= 0 && tx_type < (TX_CAS - TX_GET));
+ assert(tx_type < (TX_CAS - TX_GET));
ctx->tx[tx_type].set[ctx->tx[tx_type].current++] = tx_time;
}
Please sign in to comment.
Something went wrong with that request. Please try again.