Explanation
Consider modifying the storage size of the identified data type to a storage size of N bits, where N is a power of 2 and in the following bit range: ( 8 <= N <= 1024 ).
Example
//////////// ORIGINAL ////////////
#include <ap_int.h>
void foo(ap_int<21> *a, ap_int<21> *b) {
for (long i = 0; i < 256; ++i)
b[i] = a[i];
}
//////////// UPDATED ////////////
// Use 'int' instead of 'ap_int<24>'
void foo(int *a, int *b) {
for (long i = 0; i < 256; ++i)
b[i] = a[i];
}