emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r106412: Add assertion for hash value


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r106412: Add assertion for hash values of rows.
Date: Fri, 18 Nov 2011 14:41:36 +0200
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 106412
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Fri 2011-11-18 14:41:36 +0200
message:
  Add assertion for hash values of rows.
  
   src/dispnew.c (add_row_entry): Add xassert to verify that ROW's hash code
   is valid.
modified:
  src/ChangeLog
  src/dispnew.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2011-11-18 12:21:42 +0000
+++ b/src/ChangeLog     2011-11-18 12:41:36 +0000
@@ -4,6 +4,7 @@
        hash values of the two rows.
        (copy_row_except_pointers): Preserve the used[] arrays and the
        hash values of the two rows.  (Bug#10035)
+       (add_row_entry): Add xassert to verify that ROW's hash code is valid.
 
        * xdisp.c (row_hash): New function, body extracted from
        compute_line_metrics.

=== modified file 'src/dispnew.c'
--- a/src/dispnew.c     2011-11-18 12:21:42 +0000
+++ b/src/dispnew.c     2011-11-18 12:41:36 +0000
@@ -4240,6 +4240,7 @@
   ptrdiff_t i = row->hash % row_table_size;
 
   entry = row_table[i];
+  xassert (entry || verify_row_hash (row));
   while (entry && !row_equal_p (entry->row, row, 1))
     entry = entry->next;
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]