Skip to content

Commit

Permalink
Fixed things causing compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Jul 1, 2012
1 parent 88ff286 commit 6857283
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/shogun/io/AsciiFile.cpp
Expand Up @@ -318,8 +318,8 @@ void CAsciiFile::fname(SGSparseVector<sg_type>*& matrix, int32_t& num_feat, int3
blocksize=required_blocksize; \
dummy = SG_MALLOC(uint8_t, blocksize+1); /*allow setting of '\0' at EOL*/ \
matrix=SG_MALLOC(SGSparseVector<sg_type>, num_vec); \
for (int i=0; i<num_vec; i++) \
new (&matrix[i]) SGSparseVector<sg_type>(); \
for (int i=0; i<num_vec; i++) \
new (&matrix[i]) SGSparseVector<sg_type>(); \
rewind(file); \
sz=blocksize; \
int32_t lines=0; \
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/transfer/multitask/TaskTree.cpp
Expand Up @@ -167,7 +167,7 @@ SGVector<float64_t> CTaskTree::get_SLEP_ind_t()
ind_t[1] = -1;
ind_t[2] = 1.0;

for (int32_t i=0; i<tree_nodes.size(); i++)
for (int32_t i=0; i<(int32_t)tree_nodes.size(); i++)
{
ind_t[3+i*3] = tree_nodes[i].t_min_index;
ind_t[3+i*3+1] = tree_nodes[i].t_max_index;
Expand Down

0 comments on commit 6857283

Please sign in to comment.