diff options
| author | Vibhav Pant | 2020-08-21 14:04:35 +0530 |
|---|---|---|
| committer | Vibhav Pant | 2020-08-21 14:04:35 +0530 |
| commit | f0f8d7b82492e741950c363a03b886965c91b1b0 (patch) | |
| tree | 19b716830b1ebabc0d7d75949c4e6800c0f104ad /src/nsxwidget.m | |
| parent | 9e64a087c4d167e7ec1c4e22bea3e6af53b563de (diff) | |
| parent | c818c29771d3cb51875643b2f6c894073e429dd2 (diff) | |
| download | emacs-feature/native-comp-macos-fixes.tar.gz emacs-feature/native-comp-macos-fixes.zip | |
Merge branch 'feature/native-comp' into feature/native-comp-macos-fixesfeature/native-comp-macos-fixes
Diffstat (limited to 'src/nsxwidget.m')
| -rw-r--r-- | src/nsxwidget.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nsxwidget.m b/src/nsxwidget.m index 370abee395c..e81ca7fc0cb 100644 --- a/src/nsxwidget.m +++ b/src/nsxwidget.m | |||
| @@ -388,7 +388,7 @@ js_to_lisp (id value) | |||
| 388 | NSArray *nsarr = (NSArray *) value; | 388 | NSArray *nsarr = (NSArray *) value; |
| 389 | EMACS_INT n = nsarr.count; | 389 | EMACS_INT n = nsarr.count; |
| 390 | Lisp_Object obj; | 390 | Lisp_Object obj; |
| 391 | struct Lisp_Vector *p = allocate_vector (n); | 391 | struct Lisp_Vector *p = allocate_nil_vector (n); |
| 392 | 392 | ||
| 393 | for (ptrdiff_t i = 0; i < n; ++i) | 393 | for (ptrdiff_t i = 0; i < n; ++i) |
| 394 | p->contents[i] = js_to_lisp ([nsarr objectAtIndex:i]); | 394 | p->contents[i] = js_to_lisp ([nsarr objectAtIndex:i]); |
| @@ -401,7 +401,7 @@ js_to_lisp (id value) | |||
| 401 | NSArray *keys = nsdict.allKeys; | 401 | NSArray *keys = nsdict.allKeys; |
| 402 | ptrdiff_t n = keys.count; | 402 | ptrdiff_t n = keys.count; |
| 403 | Lisp_Object obj; | 403 | Lisp_Object obj; |
| 404 | struct Lisp_Vector *p = allocate_vector (n); | 404 | struct Lisp_Vector *p = allocate_nil_vector (n); |
| 405 | 405 | ||
| 406 | for (ptrdiff_t i = 0; i < n; ++i) | 406 | for (ptrdiff_t i = 0; i < n; ++i) |
| 407 | { | 407 | { |