[Go] Fix handling of C type "long" on 32-bit systems. It was broken

for C++ long& and for big-endian systems in general.
This commit is contained in:
Ian Lance Taylor 2014-01-27 17:49:35 -08:00
commit fa9a6d58ed
2 changed files with 8 additions and 2 deletions

View file

@ -4794,6 +4794,9 @@ private:
if (is_int) {
ret = NewString("intgo ");
Append(ret, name);
} else if (is_int64) {
ret = NewString("long long ");
Append(ret, name);
} else {
ret = SwigType_lstr(t, name);
}