1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
$NetBSD: patch-ab,v 1.1.1.1 2001/03/14 16:05:49 skrll Exp $
--- khexedit/dialog.cc.orig Tue Aug 1 17:06:40 2000
+++ khexedit/dialog.cc
@@ -1,6 +1,6 @@
/*
* khexedit - Versatile hex editor
- * Copyright (C) 1999 Espen Sand, espensa@online.no
+ * Copyright (C) 1999 Eepen Sand, espensa@online.no
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
#include <ctype.h>
#include <iostream.h>
-#include <values.h>
+#include <limits.h>
#include <qbuttongroup.h>
#include <qfileinfo.h>
@@ -940,7 +940,7 @@
mGroupSpin = new QSpinBox( page );
if( mGroupSpin == 0 ) { return; }
mGroupSpin->setMinimumWidth( fontMetrics().width("M")*20 );
- mGroupSpin->setRange(1, MAXINT );
+ mGroupSpin->setRange(1, INT_MAX );
text = i18n("&Group size [bytes]");
QLabel *label = new QLabel( mGroupSpin, text, page );
@@ -952,7 +952,7 @@
mBitSpin = new QSpinBox( page );
if( mBitSpin == 0 ) { return; }
mBitSpin->setMinimumWidth( fontMetrics().width("M")*20 );
- mBitSpin->setRange(-MAXINT, MAXINT);
+ mBitSpin->setRange(INT_MIN, INT_MAX);
text = i18n("S&hift size [bits]");
label = new QLabel( mBitSpin, text, page );
@@ -1098,7 +1098,7 @@
mSizeBox = new QSpinBox( plainPage() );
if( mSizeBox == 0 ) { return; }
mSizeBox->setMinimumWidth( fontMetrics().maxWidth()*17 );
- mSizeBox->setRange( 1, MAXINT );
+ mSizeBox->setRange( 1, INT_MAX );
mSizeBox->setValue( 1 );
QLabel *label = new QLabel( mSizeBox, i18n("&Size"), plainPage() );
|