mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-08 20:56:13 +00:00
Fix x86-32 compile warning and update document (#1164)
This commit is contained in:
parent
ceaf7dc660
commit
3d1dad7792
|
@ -2103,8 +2103,10 @@ aot_resolve_target_info(AOTCompContext *comp_ctx, AOTObjectData *obj_data)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
strncpy(obj_data->target_info.arch, comp_ctx->target_arch,
|
bh_assert(sizeof(obj_data->target_info.arch)
|
||||||
sizeof(obj_data->target_info.arch) - 1);
|
== sizeof(comp_ctx->target_arch));
|
||||||
|
bh_memcpy_s(obj_data->target_info.arch, sizeof(obj_data->target_info.arch),
|
||||||
|
comp_ctx->target_arch, sizeof(comp_ctx->target_arch));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,7 +107,7 @@ Below is the reference implementation of the pub application. It utilizes a time
|
||||||
|
|
||||||
``` C
|
``` C
|
||||||
/* Timer callback */
|
/* Timer callback */
|
||||||
void timer_update(user_timer_t timer
|
void timer_update(user_timer_t timer)
|
||||||
{
|
{
|
||||||
attr_container_t *event;
|
attr_container_t *event;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user