Mercurial > hg > xemacs-beta
comparison src/emacs.c @ 5934:e2fae7783046 cygwin
lots of use of EMACS_INT, a few others, to eliminate all pointer truncation warnings
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Sat, 12 Dec 2015 19:08:46 +0000 |
parents | 4d7032d36975 |
children |
comparison
equal
deleted
inserted
replaced
5933:c1e8f3294298 | 5934:e2fae7783046 |
---|---|
4115 assert_equal_failed (const Ascbyte *file, int line, EMACS_INT x, EMACS_INT y, | 4115 assert_equal_failed (const Ascbyte *file, int line, EMACS_INT x, EMACS_INT y, |
4116 const Ascbyte *exprx, const Ascbyte *expry) | 4116 const Ascbyte *exprx, const Ascbyte *expry) |
4117 { | 4117 { |
4118 Ascbyte bigstr[1000]; /* #### Could overflow, but avoids any need to do any | 4118 Ascbyte bigstr[1000]; /* #### Could overflow, but avoids any need to do any |
4119 allocation, even alloca(), hence safer */ | 4119 allocation, even alloca(), hence safer */ |
4120 sprintf (bigstr, "%s (%ld) should == %s (%ld) but doesn't", | 4120 sprintf (bigstr, "%s (%Id) should == %s (%Id) but doesn't", |
4121 exprx, x, expry, y); | 4121 exprx, x, expry, y); |
4122 assert_failed (file, line, bigstr); | 4122 assert_failed (file, line, bigstr); |
4123 } | 4123 } |
4124 | 4124 |
4125 /* -------------------------------------- */ | 4125 /* -------------------------------------- */ |