Changeset c2cf2d0
- Timestamp:
- Jul 5, 2024, 11:43:23 AM (3 months ago)
- Branches:
- master
- Children:
- 550afde2
- Parents:
- 8c55d34
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.cpp
r8c55d34 rc2cf2d0 261 261 262 262 ConstantExpr * ConstantExpr::from_string( const CodeLocation & loc, const std::string & str ) { 263 const Type * charType = new BasicType( BasicKind::Char );263 const Type * charType = new BasicType( BasicKind::Char, ast::CV::Const ); 264 264 // Adjust the length of the string for the terminator. 265 265 const Expr * strSize = from_ulong( loc, str.size() + 1 ); -
src/Validate/ImplementEnumFunc.cpp
r8c55d34 rc2cf2d0 187 187 {new ast::ObjectDecl( 188 188 getLocation(), "_ret", 189 new ast::PointerType(new ast::BasicType{ast::BasicKind::Char}))}); 189 new ast::PointerType( 190 new ast::BasicType(ast::BasicKind::Char, ast::CV::Const)))}); 190 191 } 191 192 … … 231 232 {new ast::ObjectDecl( 232 233 getLocation(), "_ret", 233 new ast::PointerType(new ast::BasicType{ast::BasicKind::Char}))}); 234 new ast::PointerType( 235 new ast::BasicType(ast::BasicKind::Char, ast::CV::Const)))}); 234 236 } 235 237 … … 343 345 attr == ast::EnumAttribute::Value 344 346 ? decl->base 345 : new ast::PointerType(new ast::BasicType{ast::BasicKind::Char}), 347 : new ast::PointerType( 348 new ast::BasicType(ast::BasicKind::Char, ast::CV::Const)), 346 349 ast::ConstantExpr::from_int(decl->location, decl->members.size()), 347 350 ast::LengthFlag::FixedLen, ast::DimensionFlag::DynamicDim);
Note: See TracChangeset
for help on using the changeset viewer.