about summary refs log tree commit diff stats
path: root/076continuation.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-06-17 00:05:38 -0700
committerKartik Agaram <vc@akkartik.com>2018-06-17 00:29:22 -0700
commitdd66068298b0a11f2a1f195376cba98e0c8570b5 (patch)
tree06696728fd65cdf38a2ac571943e130e9d60c333 /076continuation.cc
parentb89b822439f47a490a1b764e14a1ed1b73059cba (diff)
downloadmu-dd66068298b0a11f2a1f195376cba98e0c8570b5.tar.gz
4261 - start using literals for 'true' and 'false'
They uncovered one bug: in edit/003-shortcuts.mu
  <scroll-down> was returning 0 for an address in one place where I
  thought it was returning 0 for a boolean.

Now we've eliminated this bad interaction between tangling and punning
literals.
Diffstat (limited to '076continuation.cc')
-rw-r--r--076continuation.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/076continuation.cc b/076continuation.cc
index fd51869d..b5b9288b 100644
--- a/076continuation.cc
+++ b/076continuation.cc
@@ -152,7 +152,7 @@ case CALL_WITH_CONTINUATION_MARK: {
 
 :(scenario next_ingredient_inside_continuation)
 recipe main [
-  call-with-continuation-mark 233/mark, f, 1/true
+  call-with-continuation-mark 233/mark, f, true
 ]
 recipe f [
   10:bool <- next-input
@@ -162,7 +162,7 @@ recipe f [
 :(scenario delimited_continuation_out_of_recipe_variable)
 recipe main [
   x:recipe <- copy f
-  call-with-continuation-mark 233/mark, x, 1/true
+  call-with-continuation-mark 233/mark, x, true
 ]
 recipe f [
   10:bool <- next-input