Use macro SPECPDL_INDEX.
[bpt/emacs.git] / src / coding.c
index 0c4f20f..af23b63 100644 (file)
@@ -5804,7 +5804,7 @@ run_pre_post_conversion_on_str (str, coding, encodep)
      struct coding_system *coding;
      int encodep;
 {
-  int count = specpdl_ptr - specpdl;
+  int count = SPECPDL_INDEX ();
   struct gcpro gcpro1;
   int multibyte = STRING_MULTIBYTE (str);
   Lisp_Object buffer;