From ab68ebc01f733258280bdf40abbcbc3a288c3a87 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 17 May 2005 20:34:36 +0000 Subject: [PATCH] Use size_t for get_record index. --- include/yaz++/z-server.h | 4 ++-- src/yaz-marc-sample.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/yaz++/z-server.h b/include/yaz++/z-server.h index 91731a9..79b4b68 100644 --- a/include/yaz++/z-server.h +++ b/include/yaz++/z-server.h @@ -2,7 +2,7 @@ * Copyright (c) 2000-2001, Index Data. * See the file LICENSE for details. * - * $Id: z-server.h,v 1.4 2003-12-16 14:17:01 adam Exp $ + * $Id: z-server.h,v 1.5 2005-05-17 20:34:36 adam Exp $ */ #include @@ -131,5 +131,5 @@ public: class YAZ_EXPORT Yaz_USMARC { public: - const char *get_record(int position); + const char *get_record(size_t position); }; diff --git a/src/yaz-marc-sample.cpp b/src/yaz-marc-sample.cpp index a3d05ab..037fdf6 100644 --- a/src/yaz-marc-sample.cpp +++ b/src/yaz-marc-sample.cpp @@ -2,7 +2,7 @@ * Copyright (c) 2000-2001, Index Data. * See the file LICENSE for details. * - * $Id: yaz-marc-sample.cpp,v 1.6 2005-05-17 13:00:56 adam Exp $ + * $Id: yaz-marc-sample.cpp,v 1.7 2005-05-17 20:34:36 adam Exp $ */ #include @@ -1478,7 +1478,7 @@ static const char *marc_records[] = { "\x77\x6F\x72\x6B\x2C\x20\x4E\x44\x4E\x2E\x1E\x1D" }; -const char *Yaz_USMARC::get_record(int position) +const char *Yaz_USMARC::get_record(size_t position) { if (position >= 1 && position <= ( sizeof(marc_records) / sizeof(*marc_records))) -- 1.7.10.4