Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error al intentar asignar un número negativo a un ent16 #5

Closed
eduardogarre opened this issue Oct 31, 2021 · 1 comment
Closed

Error al intentar asignar un número negativo a un ent16 #5

eduardogarre opened this issue Oct 31, 2021 · 1 comment
Assignees
Labels
errata Algo no funciona

Comments

@eduardogarre
Copy link
Owner

eduardogarre commented Oct 31, 2021

Error no controlado al intentar asignar un número negativo a un ent16. El siguiente código genera un error de compilación:

público ent inicia()
{
    ent16 b = -2;

    devuelve 0;
}
PS> ñ ./prueba.ñ -s prueba
Assertion failed: cast<PointerType>(getOperand(1)->getType()) ->isOpaqueOrPointeeTypeMatches(getOperand(0)->getType()) && "Ptr must be a pointer to Val type!", file D:\proyectos\construyellvm\llvm-src\llvm\lib\IR\Instructions.cpp, line 1482

Este error no ocurre al asignar a variables de tipo ent32 o ent64. Por último, aparece un error diferente con las variables de tipo ent8, que se valora en la petición #6.

@eduardogarre eduardogarre added the errata Algo no funciona label Oct 31, 2021
@eduardogarre eduardogarre self-assigned this Oct 31, 2021
eduardogarre added a commit that referenced this issue Oct 31, 2021
Error al intentar asignar un número negativo a un ent16
@eduardogarre
Copy link
Owner Author

Envío fd137f8 para resolver esta errata y añado varias pruebas funcionales relacionadas.
Cierro esta petición.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
errata Algo no funciona
Projects
None yet
Development

No branches or pull requests

1 participant