DonggeLiu / AFLNet_Legion

AFLNet with MCTS
Apache License 2.0
5 stars 3 forks source link

Unexpected response code representation #1

Open thuanpv opened 3 years ago

thuanpv commented 3 years ago

Hi @Alan32Liu

Last week you asked the following question

/* TOASK:

I have checked your implementation of the append_child function (its signature is: TreeNode append_child(TreeNode tree_node, int child_response_code, enum node_colour colour)). If you pass "010", C treats it as an octal number and hence its decimal value is 8. Similarly 020 -> 16, 030 -> 24 and so on. I think you just need to pass decimal numbers and it should be fine.

thuanpv commented 3 years ago

Please see this to know more about octal numbers in C: https://www.includehelp.com/c/octal-literals.aspx

DonggeLiu commented 3 years ago

Thanks! I suppose this won't affect us then.

thuanpv commented 3 years ago

Yes, it doesn't.