mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	ast.c (rb_ast_node_type): return frozen strings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									05be3e89d4
								
							
						
					
					
						commit
						e01afc3c8e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								ast.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								ast.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -155,7 +155,7 @@ rb_ast_node_type(VALUE self)
 | 
			
		|||
    struct ASTNodeData *data;
 | 
			
		||||
    TypedData_Get_Struct(self, struct ASTNodeData, &rb_node_type, data);
 | 
			
		||||
 | 
			
		||||
    return rb_str_new_cstr(node_type_to_str(data->node));
 | 
			
		||||
    return rb_fstring_cstr(node_type_to_str(data->node));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#define NEW_CHILD(ast, node) node ? ast_new_internal(ast, node) : Qnil
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue