From 8d4052a027eeaf7310f602c7e3fdb2f03327012d Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 29 Jan 2003 03:31:39 +0000 Subject: g_return_val_if_fail for index >= 0 was the wrong way. 2003-01-29 Tor Lillqvist * pango/pango-coverage.c (pango_coverage_get): g_return_val_if_fail for index >= 0 was the wrong way. --- ChangeLog | 4 ++-- ChangeLog.pre-1-10 | 4 ++-- ChangeLog.pre-1-4 | 4 ++-- ChangeLog.pre-1-6 | 4 ++-- ChangeLog.pre-1-8 | 4 ++-- pango/pango-coverage.c | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4af96154..fe81c2c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ 2003-01-29 Tor Lillqvist - * pango/pango-coverage.c (pango_coverage_set): g_return_if_fail - for index >= 0 was the wrong way. + * pango/pango-coverage.c (pango_coverage_get/set): + g_return_if_fail for index >= 0 was the wrong way. * pango/pangowin32.c (pango_win32_font_calc_coverage): Break out of loop if char is 0xFFFF. Some fonts have tables terminated like diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index 4af96154..fe81c2c1 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,7 +1,7 @@ 2003-01-29 Tor Lillqvist - * pango/pango-coverage.c (pango_coverage_set): g_return_if_fail - for index >= 0 was the wrong way. + * pango/pango-coverage.c (pango_coverage_get/set): + g_return_if_fail for index >= 0 was the wrong way. * pango/pangowin32.c (pango_win32_font_calc_coverage): Break out of loop if char is 0xFFFF. Some fonts have tables terminated like diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4 index 4af96154..fe81c2c1 100644 --- a/ChangeLog.pre-1-4 +++ b/ChangeLog.pre-1-4 @@ -1,7 +1,7 @@ 2003-01-29 Tor Lillqvist - * pango/pango-coverage.c (pango_coverage_set): g_return_if_fail - for index >= 0 was the wrong way. + * pango/pango-coverage.c (pango_coverage_get/set): + g_return_if_fail for index >= 0 was the wrong way. * pango/pangowin32.c (pango_win32_font_calc_coverage): Break out of loop if char is 0xFFFF. Some fonts have tables terminated like diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index 4af96154..fe81c2c1 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,7 +1,7 @@ 2003-01-29 Tor Lillqvist - * pango/pango-coverage.c (pango_coverage_set): g_return_if_fail - for index >= 0 was the wrong way. + * pango/pango-coverage.c (pango_coverage_get/set): + g_return_if_fail for index >= 0 was the wrong way. * pango/pangowin32.c (pango_win32_font_calc_coverage): Break out of loop if char is 0xFFFF. Some fonts have tables terminated like diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index 4af96154..fe81c2c1 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,7 +1,7 @@ 2003-01-29 Tor Lillqvist - * pango/pango-coverage.c (pango_coverage_set): g_return_if_fail - for index >= 0 was the wrong way. + * pango/pango-coverage.c (pango_coverage_get/set): + g_return_if_fail for index >= 0 was the wrong way. * pango/pangowin32.c (pango_win32_font_calc_coverage): Break out of loop if char is 0xFFFF. Some fonts have tables terminated like diff --git a/pango/pango-coverage.c b/pango/pango-coverage.c index 61e94301..7a77b9e3 100644 --- a/pango/pango-coverage.c +++ b/pango/pango-coverage.c @@ -169,7 +169,7 @@ pango_coverage_get (PangoCoverage *coverage, int block_index; g_return_val_if_fail (coverage != NULL, PANGO_COVERAGE_NONE); - g_return_val_if_fail (index < 0, PANGO_COVERAGE_NONE); + g_return_val_if_fail (index >= 0, PANGO_COVERAGE_NONE); block_index = index / 256; -- cgit v1.2.1