libplctag / libplctag.NET

A .NET wrapper for libplctag.
https://libplctag.github.io/
Mozilla Public License 2.0
194 stars 50 forks source link

No throw on positive return value from ..._set_size(...) #379

Closed timyhac closed 3 weeks ago

timyhac commented 3 weeks ago

After some comments on #359 it became clear that there was a bug in libplctag.NET wrapper code.

Previously it was enforcing the result of set_size to be 0, but the core API says that it is only an error on a negative result and a positive result indicates the previous size.