We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61c27db commit 1e8bd73Copy full SHA for 1e8bd73
scripts/gen_bytecode.lua
@@ -70,4 +70,4 @@ function gen_bytecode()
70
end
71
72
return table.concat(t)
73
-end
+end
src/parsec/agent/runners/lua/impl.cpp
@@ -296,17 +296,17 @@ namespace cbdc::parsec::agent::runner {
296
297
return 0;
298
}
299
-
+
300
auto lua_runner::make_hash(lua_State* L) -> int {
301
int n = lua_gettop(L);
302
if(n != 1) {
303
lua_pushliteral(L, "hash takes 1 arg");
304
lua_error(L);
305
306
if(lua_isstring(L, 1) != 1) {
307
- lua_pushliteral(L, "invalid preimage");
308
- lua_error(L);
309
- }
+ lua_pushliteral(L, "invalid preimage");
+ lua_error(L);
+ }
310
size_t sz{};
311
const auto* str = lua_tolstring(L, 1, &sz);
312
assert(str != nullptr);
0 commit comments