forthy42 / gforth

Gforth mirror on GitHub (original is on Savannah)
GNU General Public License v3.0
151 stars 28 forks source link

Cast char * to Cell instead of Char * to suppress compiler warnings #24

Closed horttanainen closed 4 years ago

horttanainen commented 4 years ago

This pull request suppresses the following warnings:

warning: assignment to 'Cell' {aka 'long int'} from 'Char *' {aka 'unsigned char *'} makes integer from pointer without a cast [-Wint-conversion]
  168 |     (addr) = (Char *) str; \

Sorry for the inconvenience.

horttanainen commented 4 years ago

@forthy42 Could you please check what is wrong with travis build? The error messages do not tell me much and it seems to me that error is not related to this PR.

forthy42 commented 4 years ago

Yes, was unrelated, fixed. Thanks for the contribution.