fix warnings on 32-bit platforms
This commit is contained in:
parent
97dfdb8f95
commit
108d40ec16
3 changed files with 5 additions and 4 deletions
|
@ -129,7 +129,7 @@ namespace rose {
|
|||
last_start = start;
|
||||
|
||||
|
||||
printf("tuple 'size'%d ; %ld\n", PAGELAYOUT::FMT::TUP::sizeofBytes(), sizeof(typename PAGELAYOUT::FMT::TUP));
|
||||
printf("tuple 'size'%d ; %lld\n", PAGELAYOUT::FMT::TUP::sizeofBytes(), (long long)sizeof(typename PAGELAYOUT::FMT::TUP));
|
||||
|
||||
COUNT = 100000; // XXX kludgey
|
||||
count = 100000;
|
||||
|
|
|
@ -96,7 +96,7 @@ namespace rose {
|
|||
epoch_t this_xid = 0;
|
||||
epoch_t last_ts_col = 0;
|
||||
|
||||
printf("tuple 'size'%d ; %ld\n", PAGELAYOUT::FMT::TUP::sizeofBytes(), sizeof(typename PAGELAYOUT::FMT::TUP));
|
||||
printf("tuple 'size'%d ; %lld\n", PAGELAYOUT::FMT::TUP::sizeofBytes(), (long long)sizeof(typename PAGELAYOUT::FMT::TUP));
|
||||
|
||||
if(file_mode) {
|
||||
typename PAGELAYOUT::FMT::TUP scratch;
|
||||
|
|
|
@ -691,8 +691,9 @@ namespace rose {
|
|||
handleBytes > inputSizeThresh ||
|
||||
#endif
|
||||
handleBytes > memSizeThresh) { // XXX ok?
|
||||
printf("Handle mbytes %ld (%ld) Input size: %lld input size thresh: %ld mbytes mem size thresh: %ld\n",
|
||||
handleBytes / (1024*1024), h->scratch_handle->size(), *h->input_size, inputSizeThresh / (1024*1024), memSizeThresh / (1024*1024));
|
||||
printf("Handle mbytes %lld (%lld) Input size: %lld input size thresh: %lld mbytes mem size thresh: %lld\n",
|
||||
(long long) handleBytes / (1024*1024), (long long) h->scratch_handle->size(), (long long) *h->input_size,
|
||||
(long long) inputSizeThresh / (1024*1024), (long long) memSizeThresh / (1024*1024));
|
||||
TlsmTableFlush<PAGELAYOUT>(h);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue