# error in interbase.c

- Thread: https://externals.io/message/4444
- Original archive: https://news-web.php.net/php.internals/4444
- Started by Kevin Waterson on 2003-09-11T01:38:10+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #4444 — Kevin Waterson — 2003-09-11T01:38:10+00:00

URL: https://externals.io/message/4444#4444

I have been getting a compile error when compiling with interbase

/home/kevin/php5-200309100330/ext/interbase/interbase.c:328: parse error before "ISC_LONG"
make: *** [ext/interbase/interbase.lo] Error 1

line 328 is..
qd->gds_quad_low = (unsigned ISC_LONG) (res & 0xFFFFFFFF); */

removing the unsigned fixes it for me
qd->gds_quad_low = (ISC_LONG) (res & 0xFFFFFFFF);

using firebird 1.5.0

Kind regards
Kevin

-- 
 ______                              
(_____ \                             
 _____) )  ____   ____   ____   ____ 
|  ____/  / _  ) / _  | / ___) / _  )
| |      ( (/ / ( ( | |( (___ ( (/ / 
|_|       \____) \_||_| \____) \____)
Kevin Waterson
Port Macquarie, Australia

---

## #4445 — Ard Biesheuvel — 2003-09-11T08:51:40+00:00

URL: https://externals.io/message/4444#4445 · In reply to: #4444

> line 328 is..
> qd->gds_quad_low = (unsigned ISC_LONG) (res & 0xFFFFFFFF); */
> 
> removing the unsigned fixes it for me
> qd->gds_quad_low = (ISC_LONG) (res & 0xFFFFFFFF);
> 

Thanks for the report.
It was only changed recently because IB < 6 doesn't define ISC_ULONG.
Apparently, FB defines ISC_LONG as 'signed long' which doesn't make 
sense if you prepend 'unsigned'.

As it only matter for size, ISC_LONG is just as good.

Changed back in CVS

-- 
Ard
