We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35090dc commit 73bd385Copy full SHA for 73bd385
examples/handlers/handlers.go
@@ -4,7 +4,7 @@ import (
4
"flag"
5
"log"
6
"path/filepath"
7
-
+
8
"github.com/sciter-sdk/go-sciter"
9
"github.com/sciter-sdk/go-sciter/rice"
10
"github.com/sciter-sdk/go-sciter/window"
@@ -25,7 +25,7 @@ func setEventHandler(w *window.Window) {
25
return rval
26
})
27
w.DefineFunction("sumall", func(args ...*sciter.Value) *sciter.Value {
28
- sum := 0
+ sum := int32(0)
29
for i := 0; i < len(args); i++ {
30
sum += args[i].Int()
31
}
0 commit comments