summaryrefslogtreecommitdiff
path: root/core/src/xmake/engine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-19 00:57:10 +0800
committerruki <[email protected]>2022-05-19 00:57:10 +0800
commit961f414fb459c02ba82ceff540296b52e3a965bd (patch)
tree61635f96a456daada00f5172822a8df47359eb27 /core/src/xmake/engine.c
parente0e5d36e264fc580802c93e26103d604e61f6a00 (diff)
add hash.sha1
Diffstat (limited to 'core/src/xmake/engine.c')
-rw-r--r--core/src/xmake/engine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c
index 43e073210..a5ebeb9d7 100644
--- a/core/src/xmake/engine.c
+++ b/core/src/xmake/engine.c
@@ -182,7 +182,7 @@ tb_int_t xm_path_is_absolute(lua_State* lua);
// the hash functions
tb_int_t xm_hash_uuid4(lua_State* lua);
-tb_int_t xm_hash_sha256(lua_State* lua);
+tb_int_t xm_hash_sha(lua_State* lua);
tb_int_t xm_hash_md5(lua_State* lua);
// the base64 functions
@@ -406,7 +406,7 @@ static luaL_Reg const g_path_functions[] =
static luaL_Reg const g_hash_functions[] =
{
{ "uuid4", xm_hash_uuid4 }
-, { "sha256", xm_hash_sha256 }
+, { "sha", xm_hash_sha }
, { "md5", xm_hash_md5 }
, { tb_null, tb_null }
};