vision-dbms / vision

The master repository for the Vision database system.
https://vision-dbms.com
BSD 3-Clause "New" or "Revised" License
27 stars 12 forks source link

Fixing pointer alignment issue for Solaris/sparc in the frontend #15

Closed c-kuhlman closed 7 years ago

c-kuhlman commented 7 years ago

Entering text in the input buffer would often generate a Bus Error due to pointer arithmetic returning pointers on a multiple of 4 (int) boundary rather than a multiple of 8 (char *). Modifying the code to add a multiple of 8 fixed the problem on Solaris sparc, but if someone would verify that it doesn't cause problems elsewhere ( I wouldn't expect it to) I would be thankful.