Skip to content

Commit

Permalink
Change remaining old 'offset' deprecation to error
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Dec 19, 2014
1 parent 626d642 commit ec5edab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/iasm.c
Expand Up @@ -4193,7 +4193,7 @@ static OPND *asm_una_exp()
// Check for offset keyword
if (asmtok->ident == Id::offset)
{
deprecation(asmstate.loc, "offset deprecated, use offsetof");
error(asmstate.loc, "use offsetof instead of offset");
goto Loffset;
}
if (asmtok->ident == Id::offsetof)
Expand Down
2 changes: 1 addition & 1 deletion src/mtype.c
Expand Up @@ -3547,7 +3547,7 @@ Expression *TypeVector::dotExp(Scope *sc, Expression *e, Identifier *ident, int
e->type = basetype;
return e;
}
if (ident == Id::offsetof || ident == Id::offset || ident == Id::stringof)
if (ident == Id::offsetof || ident == Id::stringof)
{
// offsetof does not work on a cast expression, so use the basetype directly
// stringof should not add a cast to the output
Expand Down

0 comments on commit ec5edab

Please sign in to comment.