Skip to content

Commit

Permalink
[src/builtins/io.pir] removed 'prompt' undef warning
Browse files Browse the repository at this point in the history
When ^D is pressed in a 'prompt' call, a non-optional undef warning
was issued. Fixed this.
  • Loading branch information
Carl Masak committed Jun 9, 2009
1 parent 063f3d5 commit fa4198c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/builtins/io.pir
Expand Up @@ -165,8 +165,12 @@ Shows the supplied message and then waits for input from $*IN.
.param string prompt
'print'(prompt)
$P0 = get_hll_global "$IN"
$S0 = $P0.'get'()
$P1 = $P0.'get'()
unless $P1 goto undef
$S0 = $P1
.return ($S0)
undef:
.return ($P1)
.end


Expand Down

0 comments on commit fa4198c

Please sign in to comment.