From 685c6bee2fb0e39731bce319c545eb4a5301e920 Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Thu, 15 Oct 2015 16:54:55 +0200 Subject: [PATCH 1/1] [Lua] Amended comments in chord.lua --- examples/lua/chord/chord.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/lua/chord/chord.lua b/examples/lua/chord/chord.lua index d769963815..523581f0e6 100644 --- a/examples/lua/chord/chord.lua +++ b/examples/lua/chord/chord.lua @@ -217,7 +217,9 @@ function handle_task(task) else -- FIXME: This is completely wrong here. Fix this; -- we need to figure out what to send if we don't know our - -- predecessor yet + -- predecessor yet (this DOES happen and this means that task.answer + -- is initialised with nil and when task.answer is accessed (not here), it will + -- break in Lua 5.3 (because it is nil). simgrid.critical("Don't know my predecessor yet!") my_node.predecessor = remote_get_predecessor(my_node.fingers[1]) task.answer = my_node.predecessor -- 2.20.1