@@ -114,7 +114,7 @@ class ARCFileReader : public G3Reader {
114114
115115 void ParseArrayMap (uint8_t *buffer, size_t size);
116116 G3FrameObjectPtr GCPToFrameObject (uint8_t *buffer,
117- const struct block_stats &block, bool has_string_flag,
117+ const struct block_stats &block,
118118 int depth = 0 , int base_offset = 0 );
119119
120120 Experiment experiment;
@@ -616,8 +616,7 @@ static double GCP64ToFloat(uint8_t *buffer, off_t offset)
616616}
617617
618618G3FrameObjectPtr ARCFileReader::GCPToFrameObject (uint8_t *buffer,
619- const struct ARCFileReader ::block_stats &block, bool has_string_flag,
620- int depth, int base_offset)
619+ const struct ARCFileReader ::block_stats &block, int depth, int base_offset)
621620{
622621 if (base_offset == 0 )
623622 base_offset = block.offset ;
@@ -637,7 +636,7 @@ G3FrameObjectPtr ARCFileReader::GCPToFrameObject(uint8_t *buffer,
637636
638637 for (int i = 0 ; i < block.dim [depth]; i++) {
639638 root->push_back (GCPToFrameObject (buffer, block,
640- has_string_flag, depth+1 , base_offset));
639+ depth+1 , base_offset));
641640 base_offset += block.width *stride;
642641 }
643642
@@ -662,7 +661,7 @@ G3FrameObjectPtr ARCFileReader::GCPToFrameObject(uint8_t *buffer,
662661 * best we can.
663662 */
664663 bool is_a_string = false ;
665- if (has_string_flag ) {
664+ if (has_string_flag_ ) {
666665 // Are we lucky enough that GCP tells us?
667666 is_a_string = (block.flags & REG_STRING);
668667 } else if (block.flags & REG_FAST) {
@@ -807,7 +806,7 @@ G3FramePtr ARCFileReader::FillFrame()
807806 for (auto reg = board->second .begin ();
808807 reg != board->second .end (); reg++) {
809808 (*boarddat)[reg->first ] = GCPToFrameObject (
810- buffer, reg->second , has_string_flag_ );
809+ buffer, reg->second );
811810 }
812811 (*templ)[board->first ] = boarddat;
813812 }
0 commit comments