Mercurial > hg > xemacs-beta
comparison src/data.c @ 2054:91d4c8c65a0f
[xemacs-hg @ 2004-05-02 04:06:51 by malcolmp]
Fix warnings and errors when building GTK using C++ and --use-union-type.
author | malcolmp |
---|---|
date | Sun, 02 May 2004 04:07:01 +0000 |
parents | fd0cbe945410 |
children | 04bc9d2f42c7 |
comparison
equal
deleted
inserted
replaced
2053:11e709117623 | 2054:91d4c8c65a0f |
---|---|
1372 #else | 1372 #else |
1373 if (b == 10) | 1373 if (b == 10) |
1374 { | 1374 { |
1375 /* Use the system-provided functions for base 10. */ | 1375 /* Use the system-provided functions for base 10. */ |
1376 #if SIZEOF_EMACS_INT == SIZEOF_INT | 1376 #if SIZEOF_EMACS_INT == SIZEOF_INT |
1377 return make_int (atoi (p)); | 1377 return make_int (atoi ((char*) p)); |
1378 #elif SIZEOF_EMACS_INT == SIZEOF_LONG | 1378 #elif SIZEOF_EMACS_INT == SIZEOF_LONG |
1379 return make_int (atol (p)); | 1379 return make_int (atol ((char*) p)); |
1380 #elif SIZEOF_EMACS_INT == SIZEOF_LONG_LONG | 1380 #elif SIZEOF_EMACS_INT == SIZEOF_LONG_LONG |
1381 return make_int (atoll (p)); | 1381 return make_int (atoll ((char*) p)); |
1382 #endif | 1382 #endif |
1383 } | 1383 } |
1384 else | 1384 else |
1385 { | 1385 { |
1386 int negative = 1; | 1386 int negative = 1; |