Skip to content

Commit a929534

Browse files
Add missing include, remove debug output, fix indention
1 parent 38ff443 commit a929534

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

blobstamper/galley.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ GalleyVectorBase::extract_internal(std::shared_ptr<Blob> blob)
161161
/* Stamp is variated size */
162162
int fixed_size = stamp->minSize();
163163
int var_size = stamp->maxSize() - fixed_size;
164-
fprintf(stderr, "fixed = %i, var_size = %i\n", fixed_size, var_size);
165164

166165
ORACLE_STAMP stamp_oracle;
167166
while(1)
@@ -175,7 +174,6 @@ fprintf(stderr, "fixed = %i, var_size = %i\n", fixed_size, var_size);
175174
if (size > blob->Size())
176175
size = blob->Size(); // Getting what have been left, if not as much as we wanted
177176

178-
fprintf(stderr,"---- %i %i\n", size, blob->Size());
179177
std::shared_ptr<Blob> blob2 = blob->Chop(size);
180178
res.push_back(blob2);
181179
}
@@ -346,7 +344,7 @@ GalleySetBase::extract_internal(std::shared_ptr<Blob> blob)
346344
unbounded_remainder = len - el_size;
347345
el_size +=s->minSize();
348346
}
349-
std::shared_ptr<Blob> blob2 = blob->Chop(el_size);
347+
std::shared_ptr<Blob> blob2 = blob->Chop(el_size);
350348
res.push_back(blob2);
351349
}
352350
return res;
@@ -358,7 +356,7 @@ GalleySetBase::LoadAll(std::shared_ptr<Blob> blob)
358356
std::vector<std::shared_ptr<Blob>> blobs = extract_internal(blob);
359357
for(int i=0; i<blobs.size(); i++)
360358
{
361-
std::shared_ptr<Blob> blob = blobs[i];
359+
std::shared_ptr<Blob> blob = blobs[i];
362360
std::shared_ptr<StampBase> s = stamps[i];
363361
s->Load(blob);
364362
}
@@ -372,7 +370,7 @@ GalleySetStr::ExtractStrSet(std::shared_ptr<Blob> blob)
372370
std::vector<std::shared_ptr<Blob>> blobs = extract_internal(blob);
373371
for(int i=0; i<blobs.size(); i++)
374372
{
375-
std::shared_ptr<Blob> blob = blobs[i];
373+
std::shared_ptr<Blob> blob = blobs[i];
376374
auto stamp = std::dynamic_pointer_cast<StampBaseStr>(stamps[i]);
377375
std::string str = stamp->ExtractStr(blob);
378376
res.push_back(str);
@@ -387,7 +385,7 @@ GalleySetBin::ExtractBinSet(std::shared_ptr<Blob> blob)
387385
std::vector<std::shared_ptr<Blob>> blobs = extract_internal(blob);
388386
for(int i=0; i<blobs.size(); i++)
389387
{
390-
std::shared_ptr<Blob> blob = blobs[i];
388+
std::shared_ptr<Blob> blob = blobs[i];
391389
auto stamp = std::dynamic_pointer_cast<StampBaseBin>(stamps[i]);
392390
std::vector<char> v = stamp->ExtractBin(blob);
393391
res.push_back(v);

blobstamper/stamp_lottery.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#ifndef STAMP_LOTTERY_H
2020
#define STAMP_LOTTERY_H
2121

22+
#include<limits>
2223
template<class StampT> class StampLottery: public StampT
2324
{
2425
protected:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy