fix signed integer comparison error in values error reporting - gcl.git - GNU Common Lisp

index : gcl.git
GNU Common Lisp
summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamm Maguire <camm@debian.org>2014年10月22日 15:47:25 -0400
committerCamm Maguire <camm@debian.org>2014年10月22日 15:47:25 -0400
commit964527fcc3ca0a5c245670a2cbce2c2a25cdd84b (patch)
tree62ac951c970f12ced0e25c96116bd4c8299cd814
parentb8f1bb6623808a57bf6faf147d9c933905ecff23 (diff)
downloadgcl-964527fcc3ca0a5c245670a2cbce2c2a25cdd84b.tar.gz
fix signed integer comparison error in values error reporting
Diffstat
-rwxr-xr-xgcl/o/utils.c 4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcl/o/utils.c b/gcl/o/utils.c
index 1a4778fd1..06a54fda6 100755
--- a/gcl/o/utils.c
+++ b/gcl/o/utils.c
@@ -191,10 +191,10 @@ fSincorrect_type(object val, object type)
and return the actual value (or nil if no values); */
object
Ivs_values(void)
-{ int n = fcall.nvalues = vs_top - vs_base;
+{ fixnum n = fcall.nvalues = vs_top - vs_base;
object *b = vs_base,*p=&fcall.values[0];
object res = (n > 0 ? b[0] : sLnil);
- if (n>=sizeof(fcall.values)/sizeof(*fcall.values))
+ if (n>=(fixnum)(sizeof(fcall.values)/sizeof(*fcall.values)))
FEerror("Too many function call values",0);
while (--n > 0)
{ *++p= *++b;}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月05日 02:40:24 +0000

AltStyle によって変換されたページ (->オリジナル) /