Skip to content

Commit

Permalink
fix compile error in dynint example and reduce array size to speed it up
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Jun 5, 2012
1 parent 90df188 commit 3177332
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/undocumented/libshogun/library_dyn_int.cpp
Expand Up @@ -49,7 +49,7 @@ void gen_ints(uint256_t* &a, uint32_t* &b, uint32_t len)
}
}

const int LEN = 5*1024*1024;
const int LEN = 5*1024;

int main()
{
Expand Down Expand Up @@ -82,9 +82,10 @@ int main()

SG_SPRINT("\n\n");

a[0]=(uint64_t[4]) {1,2,3,4};
uint64_t val[4]={5,6,7,8};
a[1]=val;
uint64_t val1[4]={1,2,3,4};
uint64_t val2[4]={5,6,7,8};
a[0]=val1;
a[1]=val2;
a[2]=a[0];
CMath::swap(a[0],a[1]);

Expand Down

0 comments on commit 3177332

Please sign in to comment.