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

Point to point conversions are buggy #5505

Closed
hiiamboris opened this issue May 20, 2024 · 1 comment
Closed

Point to point conversions are buggy #5505

hiiamboris opened this issue May 20, 2024 · 1 comment
Assignees
Labels
status.built A change in codebase has been done to address the ticket. status.tested The change in code has been manually tested and verified to fix the issue. test.written A regression test has been written and tested for the ticket. type.bug Ticket describes an abnormal behavior, not conforming to the specs or expectation.
Milestone

Comments

@hiiamboris
Copy link
Collaborator

Describe the bug

>> to-point3D make point2D! 1
== (1351, 1025, 0)

>> to point3D! make point2D! 1

*** Runtime Error 1: access violation
*** in file: /d/devel/red/red-src/master/runtime/datatypes/point3D.reds
*** at line: 220
***
***   stack: red/point3D/make 012A256Ch 012A257Ch 52
***   stack: red/actions/to 012A256Ch 012A257Ch
***   stack: red/actions/to*
***   stack: red/interpreter/eval-arguments 012A255Ch 057E9278h 057E9278h 012A253Ch 00000000h 00000000h 0 false
***   stack: red/interpreter/eval-code 04B6FE18h 057E9238h 057E9278h 012A253Ch false 00000000h 00000000h 04B6FE18h 0 false
***   stack: red/interpreter/eval-expression 057E9238h 057E9278h 012A253Ch false false false
***   stack: red/interpreter/eval 012A253Ch true
***   stack: red/natives/catch* true 1
***   stack: ctx||629~try-do 0139F658h
***   stack: ctx||629~do-command 0139F658h
***   stack: ctx||629~eval-command 0139F658h
***   stack: ctx||629~run 0139F658h
***   stack: ctx||629~launch 0139F658h
***   stack: ctx||648~launch 0139F044h

>> make point3D! make point2D! 1

*** Runtime Error 1: access violation
*** in file: /d/devel/red/red-src/master/runtime/datatypes/point3D.reds
*** at line: 220
***
***   stack: red/point3D/make 0539256Ch 0539257Ch 52
***   stack: red/actions/make 0539256Ch 0539257Ch
***   stack: red/actions/make*
***   stack: red/interpreter/eval-arguments 0539255Ch 05799278h 05799278h 0539253Ch 00000000h 00000000h 0 false
***   stack: red/interpreter/eval-code 054705E8h 05799238h 05799278h 0539253Ch false 00000000h 00000000h 054705E8h 0 false
***   stack: red/interpreter/eval-expression 05799238h 05799278h 0539253Ch false false false
***   stack: red/interpreter/eval 0539253Ch true
***   stack: red/natives/catch* true 1
***   stack: ctx||629~try-do 04A3F658h
***   stack: ctx||629~do-command 04A3F658h
***   stack: ctx||629~eval-command 04A3F658h
***   stack: ctx||629~run 04A3F658h
***   stack: ctx||629~launch 04A3F658h
***   stack: ctx||648~launch 04A3F044h

Expected behavior

(1,1,0)

Platform version
Red 0.6.5 for Windows built 17-May-2024/5:19:26+03:00 commit #a150e8e

@hiiamboris hiiamboris added the type.bug Ticket describes an abnormal behavior, not conforming to the specs or expectation. label May 20, 2024
@dockimbel dockimbel self-assigned this May 20, 2024
@dockimbel dockimbel added the status.impending Ticket is under processing or will be processed very soon. label May 20, 2024
@dockimbel dockimbel added this to the 0.6.6 milestone May 20, 2024
@dockimbel
Copy link
Member

dockimbel commented May 20, 2024

A silly copy/paste bug... (my own)

@dockimbel dockimbel added status.built A change in codebase has been done to address the ticket. status.tested The change in code has been manually tested and verified to fix the issue. test.written A regression test has been written and tested for the ticket. and removed status.impending Ticket is under processing or will be processed very soon. labels May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status.built A change in codebase has been done to address the ticket. status.tested The change in code has been manually tested and verified to fix the issue. test.written A regression test has been written and tested for the ticket. type.bug Ticket describes an abnormal behavior, not conforming to the specs or expectation.
Projects
None yet
Development

No branches or pull requests

2 participants