]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
llama : suppress unary minus operator warning (#8448)
authorDaniel Bevenius <redacted>
Fri, 12 Jul 2024 09:05:21 +0000 (11:05 +0200)
committerGitHub <redacted>
Fri, 12 Jul 2024 09:05:21 +0000 (12:05 +0300)
commitf53226245f421bd01b47cce43a47e791de82c636
treef9388689fd12266f9e3f9ea82afc16feb6cf6e38
parentc3ebcfa148e867a68e78fd5c4f0c23e8f84c788b
llama : suppress unary minus operator warning (#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
```
src/llama.cpp