From 9def193fa607f0fcfff439e701953af1bda5273b Mon Sep 17 00:00:00 2001 From: robocop Date: Sun, 2 Aug 2009 14:24:23 +0000 Subject: [PATCH] Misc. --- src/jrd/filters.cpp | 1 + src/jrd/gds.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jrd/filters.cpp b/src/jrd/filters.cpp index aa44afe623..5286aca0a0 100644 --- a/src/jrd/filters.cpp +++ b/src/jrd/filters.cpp @@ -424,6 +424,7 @@ ISC_STATUS filter_runtime(USHORT action, BlobControl* control) if (blr) { + fb_assert(length > 0); isc_print_blr2(p, length - 1, dump_blr, control, 0); control->ctl_data[1] = control->ctl_data[0]; } diff --git a/src/jrd/gds.cpp b/src/jrd/gds.cpp index d17c14fa45..295fca066f 100644 --- a/src/jrd/gds.cpp +++ b/src/jrd/gds.cpp @@ -3234,7 +3234,7 @@ static void blr_print_verb(gds_ctl* control, SSHORT level) break; case op_begin: - while ((SCHAR) control->ctl_blr_reader.peekByte() != (SCHAR) blr_end) + while (control->ctl_blr_reader.peekByte() != (UCHAR) blr_end) blr_print_verb(control, level); break;