possible fix
This commit is contained in:
		
							parent
							
								
									1bbde4597b
								
							
						
					
					
						commit
						6232c78f88
					
				
					 2 changed files with 318 additions and 655 deletions
				
			
		
							
								
								
									
										965
									
								
								src/json.hpp
									
										
									
									
									
								
							
							
						
						
									
										965
									
								
								src/json.hpp
									
										
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							| 
						 | 
				
			
			@ -2412,10 +2412,12 @@ class basic_json
 | 
			
		|||
        /// constructor for strings
 | 
			
		||||
        inline parser(const std::string& s) : buffer(s)
 | 
			
		||||
        {
 | 
			
		||||
            buffer += "     ";
 | 
			
		||||
 | 
			
		||||
            // set buffer for RE2C
 | 
			
		||||
            buffer_re2c = reinterpret_cast<const lexer_char_t*>(buffer.c_str());
 | 
			
		||||
            // set a pointer past the end of the buffer
 | 
			
		||||
            buffer_re2c_limit = buffer_re2c + buffer.size();
 | 
			
		||||
            buffer_re2c_limit = buffer_re2c + buffer.size() - 5;
 | 
			
		||||
            // read first token
 | 
			
		||||
            get_token();
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			@ -2429,11 +2431,13 @@ class basic_json
 | 
			
		|||
                std::getline(_is, input_line);
 | 
			
		||||
                buffer += input_line;
 | 
			
		||||
            }
 | 
			
		||||
            
 | 
			
		||||
            buffer += "     ";
 | 
			
		||||
 | 
			
		||||
            // set buffer for RE2C
 | 
			
		||||
            buffer_re2c = reinterpret_cast<const lexer_char_t*>(buffer.c_str());
 | 
			
		||||
            // set a pointer past the end of the buffer
 | 
			
		||||
            buffer_re2c_limit = buffer_re2c + buffer.size();
 | 
			
		||||
            buffer_re2c_limit = buffer_re2c + buffer.size() - 5;
 | 
			
		||||
            // read first token
 | 
			
		||||
            get_token();
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue