Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #18 from andreasnoack/master
Browse files Browse the repository at this point in the history
Fix type check in set_types by changing repeated TILEDB_INT64 to TILEDB_FLOAT64 #17
  • Loading branch information
stavrospapadopoulos committed May 10, 2016
2 parents 85f963f + 6fdbdb4 commit fbc1d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/array/array_schema.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ int ArraySchema::set_types(const int* types) {
if(types[i] != TILEDB_INT32 &&
types[i] != TILEDB_INT64 &&
types[i] != TILEDB_FLOAT32 &&
types[i] != TILEDB_INT64 &&
types[i] != TILEDB_FLOAT64 &&
types[i] != TILEDB_CHAR) {
PRINT_ERROR("Cannot set types; Invalid type");
return TILEDB_AS_ERR;
Expand All @@ -1316,7 +1316,7 @@ int ArraySchema::set_types(const int* types) {
if(types[attribute_num_] != TILEDB_INT32 &&
types[attribute_num_] != TILEDB_INT64 &&
types[attribute_num_] != TILEDB_FLOAT32 &&
types[attribute_num_] != TILEDB_INT64) {
types[attribute_num_] != TILEDB_FLOAT64) {
PRINT_ERROR("Cannot set types; Invalid type");
return TILEDB_AS_ERR;
}
Expand Down

0 comments on commit fbc1d53

Please sign in to comment.