added (int) to remove compiler warning

pull/121/head
alanbjohnston 5 years ago committed by GitHub
parent 9f11df7e69
commit e7b4ff81a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -124,7 +124,7 @@ void update_rs(
if(feedback != A0){ // only if feedback is non-zero if(feedback != A0){ // only if feedback is non-zero
// Take advantage of palindromic polynomial to halve the multiplies // Take advantage of palindromic polynomial to halve the multiplies
// Do G1...G15, which is the same as G17...G31 // Do G1...G15, which is the same as G17...G31
for(j=1;j<NP/2;j++){ for(j=1;j<(int)(NP/2);j++){
t = CCSDS_alpha_to[modnn(feedback + CCSDS_poly[j])]; t = CCSDS_alpha_to[modnn(feedback + CCSDS_poly[j])];
parity[j] ^= t; parity[j] ^= t;
parity[NP-j] ^= t; parity[NP-j] ^= t;

Loading…
Cancel
Save

Powered by TurnKey Linux.