projects
/
psqlodbc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d90e260
)
Sorry for the package, but the following patch need to be applied to get
author
Bruce Momjian
<bruce@momjian.us>
Wed, 24 Apr 2002 01:56:20 +0000
(
01:56
+0000)
committer
Bruce Momjian
<bruce@momjian.us>
Wed, 24 Apr 2002 01:56:20 +0000
(
01:56
+0000)
the new verion compiled on SCO Openserver 5.0.5 and Unixware 7.1.1
Nicolas Bazin
convert.c
patch
|
blob
|
blame
|
history
diff --git
a/convert.c
b/convert.c
index a2e2ee8c778b78b9780eeda18bc34c05359d1e50..39998cc0c5737021b0b70f14073fcbe77e90d25c 100644
(file)
--- a/
convert.c
+++ b/
convert.c
@@
-2720,7
+2720,7
@@
conv_from_octal(const unsigned char *s)
y = 0;
for (i = 1; i <= 3; i++)
- y += (s[i] -
48) * (int) pow(8, 3 - i
);
+ y += (s[i] -
'0') << (3 * (3 - i)
);
return y;
@@
-2743,7
+2743,7
@@
conv_from_hex(const unsigned char *s)
else
val = s[i] - '0';
- y += val
* (int) pow(16, 2 - i
);
+ y += val
<< (4 * (2 - i)
);
}
return y;
@@
-2798,7
+2798,7
@@
conv_to_octal(unsigned char val)
for (i = 4; i > 1; i--)
{
- x[i] = (val & 7) +
48
;
+ x[i] = (val & 7) +
'0'
;
val >>= 3;
}