1
0
mirror of https://github.com/golang/go synced 2024-11-18 15:54:42 -07:00
go/misc/swig
Shenghou Ma 583293349b misc/swig/stdio: fix broken nil pointer test
SWIG has always returned a typed interface value for a C++ class,
so the interface value will never be nil even if the pointer itself
is NULL. ptr == NULL in C/C++ should be ptr.Swigcptr() == 0 in Go.

Fixes #9514.

Change-Id: I3778b91acf54d2ff22d7427fbf2b6ec9b9ce3b43
Reviewed-on: https://go-review.googlesource.com/2440
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-01-07 23:24:23 +00:00
..
callback
stdio misc/swig/stdio: fix broken nil pointer test 2015-01-07 23:24:23 +00:00