When I use the code below, it returns a different number.
numb = 5000000000 n = ctypes.c_int(numb)the number it converts : 705032703
UPDATE
now it doesn't give error. and performed the operation. However, the number it returns is still different. It should return the number I entered. but it does not return.
main.py
numb = 5000000000
n = ctypes.c_int64(numb)
x = hello_world(n)
print(x)
golang code that I converted to c code
main.go
package main
import "C"
func helloWorld(x int64) int64 {
s := int64(1)
for i := int64(1); i < x; i++ {
s = i
}
return s
}