pogs icon indicating copy to clipboard operation
pogs copied to clipboard

Missing memory movement in the C interface

Open tygert opened this issue 7 years ago • 0 comments

The three lines with memcpy omit "sizeof(T)"....

(1) The final argument, "n", wants to be "n * sizeof(T)": https://github.com/foges/pogs/blob/81e3d89f0db399de56f5ba9d8302010632847bfe/src/interface_c/pogs_c.cpp#L48

(2) The final argument, "m", wants to be "m * sizeof(T)": https://github.com/foges/pogs/blob/81e3d89f0db399de56f5ba9d8302010632847bfe/src/interface_c/pogs_c.cpp#L49

(3) The final argument, "m", wants to be "m * sizeof(T)": https://github.com/foges/pogs/blob/81e3d89f0db399de56f5ba9d8302010632847bfe/src/interface_c/pogs_c.cpp#L50

tygert avatar Feb 24 '18 21:02 tygert