Commit ef16f450 authored by Richard Levitte's avatar Richard Levitte
Browse files

Since num is now a size_t, it's not necssary to check for less than 0,

AND it avoids warnings on certain systems.
parent 4d692e1b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -334,7 +334,7 @@ void HASH_BLOCK_HOST_ORDER (SHA_CTX *c, const void *d, size_t num)
	c->h3=(c->h3+B)&0xffffffffL;
	c->h4=(c->h4+C)&0xffffffffL;

	if (--num <= 0) break;
	if (--num == 0) break;

	A=c->h0;
	B=c->h1;
@@ -461,7 +461,7 @@ void HASH_BLOCK_DATA_ORDER (SHA_CTX *c, const void *p, size_t num)
	c->h3=(c->h3+B)&0xffffffffL;
	c->h4=(c->h4+C)&0xffffffffL;

	if (--num <= 0) break;
	if (--num == 0) break;

	A=c->h0;
	B=c->h1;
@@ -537,7 +537,7 @@ void HASH_BLOCK_HOST_ORDER (SHA_CTX *c, const void *d, size_t num)
	c->h3=(c->h3+D)&0xffffffffL;
	c->h4=(c->h4+E)&0xffffffffL;

	if (--num <= 0) break;
	if (--num == 0) break;

	A=c->h0;
	B=c->h1;
@@ -583,7 +583,7 @@ void HASH_BLOCK_DATA_ORDER (SHA_CTX *c, const void *p, size_t num)
	c->h3=(c->h3+D)&0xffffffffL;
	c->h4=(c->h4+E)&0xffffffffL;

	if (--num <= 0) break;
	if (--num == 0) break;

	A=c->h0;
	B=c->h1;