compile: Fix closure break marker resetting
authorJean Privat <jean@pryen.org>
Wed, 10 Jun 2009 14:00:28 +0000 (10:00 -0400)
committerJean Privat <jean@pryen.org>
Wed, 10 Jun 2009 14:00:32 +0000 (10:00 -0400)
commitbd8c50dc8292396e942eeab5ca9740e17c8d4f16
treefede7081043779cc6726ba094fbf9d99b7d7adc2
parent787abfb0685565f158bff3d28b35d0c2faef970a
compile: Fix closure break marker resetting

Set the break marker each time the block is called, not at the top of the function.

Side-effect: this fix also remove a gcc warning.

Signed-off-by: Jean Privat <jean@pryen.org>
src/compiling/compiling_methods.nit
tests/base_closure10.nit [new file with mode: 0644]
tests/sav/base_closure10.sav [new file with mode: 0644]