mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 01:37:19 +00:00
Fix MSVC warning.
This commit is contained in:
parent
21cccc00d7
commit
3e67916971
@ -90,7 +90,7 @@ void janet_env_lookup_into(JanetTable *renv, JanetTable *env, const char *prefix
|
|||||||
for (int32_t i = 0; i < env->capacity; i++) {
|
for (int32_t i = 0; i < env->capacity; i++) {
|
||||||
if (janet_checktype(env->data[i].key, JANET_SYMBOL)) {
|
if (janet_checktype(env->data[i].key, JANET_SYMBOL)) {
|
||||||
if (prefix) {
|
if (prefix) {
|
||||||
size_t prelen = strlen(prefix);
|
int32_t prelen = (int32_t) strlen(prefix);
|
||||||
const uint8_t *oldsym = janet_unwrap_symbol(env->data[i].key);
|
const uint8_t *oldsym = janet_unwrap_symbol(env->data[i].key);
|
||||||
int32_t oldlen = janet_string_length(oldsym);
|
int32_t oldlen = janet_string_length(oldsym);
|
||||||
uint8_t *symbuf = janet_smalloc(prelen + oldlen);
|
uint8_t *symbuf = janet_smalloc(prelen + oldlen);
|
||||||
|
Loading…
Reference in New Issue
Block a user