Commit 318d950
llama : suppress unary minus operator warning (ggml-org#8448)
This commit updates the _try_copy lambda and moves the unary minus
operator to after the cast to int32_t.
The motivation for this that currently the following warning is
generated on windows:
```console
llama.cpp\src\llama.cpp(21147,30): warning C4146: unary minus operator
applied to unsigned type, result still unsigned
```1 parent 0a7d1bf commit 318d950
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21144 | 21144 | | |
21145 | 21145 | | |
21146 | 21146 | | |
21147 | | - | |
| 21147 | + | |
21148 | 21148 | | |
21149 | 21149 | | |
21150 | 21150 | | |
| |||
0 commit comments