diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-02-15 11:18:34 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-02-15 11:18:34 -0300 |
| commit | 7237eb3f1c480d6bc7fe2832ddd36f2137fb69d9 (patch) | |
| tree | 618bb144df3f37b000fc12db0738a5d3ec3efbef /ltable.c | |
| parent | 165389b27bc54e7c5214276db177e3ef75226f18 (diff) | |
| download | lua-7237eb3f1c480d6bc7fe2832ddd36f2137fb69d9.tar.gz lua-7237eb3f1c480d6bc7fe2832ddd36f2137fb69d9.tar.bz2 lua-7237eb3f1c480d6bc7fe2832ddd36f2137fb69d9.zip | |
Fixed warnings from different compilers
Diffstat (limited to 'ltable.c')
| -rw-r--r-- | ltable.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -995,7 +995,8 @@ static int finishnodeset (Table *t, const TValue *slot, TValue *val) { | |||
| 995 | } | 995 | } |
| 996 | else if (isabstkey(slot)) | 996 | else if (isabstkey(slot)) |
| 997 | return HNOTFOUND; /* no slot with that key */ | 997 | return HNOTFOUND; /* no slot with that key */ |
| 998 | else return (cast(Node*, slot) - t->node) + HFIRSTNODE; /* node encoded */ | 998 | else /* return node encoded */ |
| 999 | return cast_int((cast(Node*, slot) - t->node)) + HFIRSTNODE; | ||
| 999 | } | 1000 | } |
| 1000 | 1001 | ||
| 1001 | 1002 | ||
