catseye / Befunge-93

MIRROR of https://codeberg.org/catseye/Befunge-93 : The NEW reference distribution for Befunge-93!
https://catseye.tc/node/Befunge-93
Other
98 stars 9 forks source link

Defined input integer error mode #9

Closed cpressey closed 6 years ago

cpressey commented 6 years ago

Addresses #6.

@j4james What do you think of this?

I've tested it with this program:

>&:.1+#v_@
^      <

comparing it against this program:

>~:.1+#v_@
^      <

Regarding line 694, it is inside an #ifdef CONSOLE; I don't know why the integer is loaded into a different local variable with a different type declaration in this case, but that's another can of worms, I think; I've just done the conservative thing and made the same change in both places.

j4james commented 6 years ago

LGTM. I think the conservative fix for the p variable was the right choice.