Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
0d3b0838
Commit
0d3b0838
authored
May 14, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compatibility fix for hp-ux 64bit (hpux compiler) and sun 64-bit (sun forte)
parent
47b7c561
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
strings/my_strtoll10.c
strings/my_strtoll10.c
+7
-7
No files found.
strings/my_strtoll10.c
View file @
0d3b0838
...
@@ -22,9 +22,9 @@
...
@@ -22,9 +22,9 @@
#define ULONGLONG_MAX (~(ulonglong) 0)
#define ULONGLONG_MAX (~(ulonglong) 0)
#define MAX_NEGATIVE_NUMBER ((ulonglong) LL(0x8000000000000000))
#define MAX_NEGATIVE_NUMBER ((ulonglong) LL(0x8000000000000000))
#define INIT_CNT 9
#define INIT_CNT 9
#define LFACTOR LL(1000000000)
#define LFACTOR
U
LL(1000000000)
#define LFACTOR1 LL(10000000000)
#define LFACTOR1
U
LL(10000000000)
#define LFACTOR2 LL(100000000000)
#define LFACTOR2
U
LL(100000000000)
static
unsigned
long
lfactor
[
9
]
=
static
unsigned
long
lfactor
[
9
]
=
{
{
...
@@ -113,8 +113,8 @@ longlong my_strtoll10(const char *nptr, char **endptr, int *error)
...
@@ -113,8 +113,8 @@ longlong my_strtoll10(const char *nptr, char **endptr, int *error)
negative
=
1
;
negative
=
1
;
if
(
++
s
==
end
)
if
(
++
s
==
end
)
goto
no_conv
;
goto
no_conv
;
cutoff
=
MAX_NEGATIVE_NUMBER
/
L
L
(
100000000000
)
;
cutoff
=
MAX_NEGATIVE_NUMBER
/
L
FACTOR2
;
cutoff2
=
(
MAX_NEGATIVE_NUMBER
%
L
L
(
100000000000
)
)
/
100
;
cutoff2
=
(
MAX_NEGATIVE_NUMBER
%
L
FACTOR2
)
/
100
;
cutoff3
=
MAX_NEGATIVE_NUMBER
%
100
;
cutoff3
=
MAX_NEGATIVE_NUMBER
%
100
;
}
}
else
else
...
@@ -125,8 +125,8 @@ longlong my_strtoll10(const char *nptr, char **endptr, int *error)
...
@@ -125,8 +125,8 @@ longlong my_strtoll10(const char *nptr, char **endptr, int *error)
if
(
++
s
==
end
)
if
(
++
s
==
end
)
goto
no_conv
;
goto
no_conv
;
}
}
cutoff
=
ULONGLONG_MAX
/
L
L
(
100000000000
)
;
cutoff
=
ULONGLONG_MAX
/
L
FACTOR2
;
cutoff2
=
ULONGLONG_MAX
%
L
L
(
100000000000
)
/
100
;
cutoff2
=
ULONGLONG_MAX
%
L
FACTOR2
/
100
;
cutoff3
=
ULONGLONG_MAX
%
100
;
cutoff3
=
ULONGLONG_MAX
%
100
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment