Browse Source

[rng] Fix build error when assertions are enabled

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
b0a1ad9242
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/crypto/drbg.c

+ 2
- 2
src/crypto/drbg.c View File

128
 		       state, strerror ( rc ) );
128
 		       state, strerror ( rc ) );
129
 		return rc;
129
 		return rc;
130
 	}
130
 	}
131
-	assert ( len >= min_len );
132
-	assert ( len <= sizeof ( data ) );
131
+	assert ( len >= ( int ) min_len );
132
+	assert ( len <= ( int ) sizeof ( data ) );
133
 
133
 
134
 	/* 9.  initial_working_state = Instantiate_algorithm (
134
 	/* 9.  initial_working_state = Instantiate_algorithm (
135
 	 *     entropy_input, nonce, personalization_string ).
135
 	 *     entropy_input, nonce, personalization_string ).

Loading…
Cancel
Save