Skip to content

Commit 9d489c1

Browse files
committed
fix: use right array for populating testdata
1 parent 884ff7d commit 9d489c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

program/c/src/oracle/model/test_price_model.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int test_price_model() {
2828
/* Brute force validate small sizes via the 0-1 principle. */
2929
for( int cnt=0; cnt<=24; cnt++ ) {
3030
for( long mask=0L; mask<(1L<<cnt); mask++ ) {
31-
for( int i=0; i<cnt; i++ ) quote[i] = (int64_t) ((mask>>i) & 1L);
31+
for( int i=0; i<cnt; i++ ) quote0[i] = (int64_t) ((mask>>i) & 1L);
3232

3333
memcpy( quote, quote0, sizeof(int64_t)*(size_t)cnt );
3434
if( price_model_core( cnt, quote, val+0, val+1, val+2)!=quote ) { printf( "FAIL (01-compose)\n" ); return 1; }

0 commit comments

Comments
 (0)