소스 검색

Add assert check on key in map_get

pull/5/head
mtardy 4 년 전
부모
커밋
e7ce81282f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      object.c

+ 1
- 1
object.c 파일 보기

@ -188,7 +188,7 @@ ssize_t map_search(oop map, oop key)
oop map_get(oop map, oop key)
{
assert(is(Map, map));
//assert(is(String, key));
assert(key);
ssize_t pos = map_search(map, key);
if (pos < 0) return null;
return get(map, Map, elements)[pos].value;

불러오는 중...
취소
저장