Skip to content

Commit

Permalink
Fixed a signed-unsigned comparison in spatial_db.cc -- issue XRPLF#293
Browse files Browse the repository at this point in the history
Summary:
Fixed a signed-unsigned comparison in spatial_db.cc

utilities/spatialdb/spatial_db.cc:542:38: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
cc1plus: all warnings being treated as errors
make: *** [utilities/spatialdb/spatial_db.o] Error 1

Test Plan:
make spatial_db_test
./spatial_db_test

Reviewers: ljin, sdong, reddragon, igor

Reviewed By: reddragon

Subscribers: reddragon, leveldb

Differential Revision: https://reviews.facebook.net/D23565
  • Loading branch information
yhchiang committed Sep 18, 2014
1 parent 2fb1fea commit 0350435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/spatialdb/spatial_db.cc
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ class SpatialDBImpl : public SpatialDB {
return Status::InvalidArgument("Spatial indexes can't be empty");
}

const int kWriteOutEveryBytes = 1024 * 1024; // 1MB
const size_t kWriteOutEveryBytes = 1024 * 1024; // 1MB
uint64_t id = next_id_.fetch_add(1);

for (const auto& si : spatial_indexes) {
Expand Down

0 comments on commit 0350435

Please sign in to comment.