Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf963f80

Browse files
committed
Avoid use of unportable hex constant in convutils.pm
Discussion:https://postgr.es/m/5a6d6de8-cff8-1ffb-946c-ccf381800ea1@2ndQuadrant.com
1 parent3a7cc72 commitf963f80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/utils/mb/Unicode/convutils.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,26 +260,26 @@ sub print_radix_table
260260
{
261261
my$out =$c->{$in};
262262

263-
if ($in < 0x100)
263+
if ($in <= 0xff)
264264
{
265265
$b1map{$in} =$out;
266266
}
267-
elsif ($in < 0x10000)
267+
elsif ($in <= 0xffff)
268268
{
269269
my$b1 =$in >> 8;
270270
my$b2 =$in & 0xff;
271271

272272
$b2map{$b1}{$b2} =$out;
273273
}
274-
elsif ($in < 0x1000000)
274+
elsif ($in <= 0xffffff)
275275
{
276276
my$b1 =$in >> 16;
277277
my$b2 = ($in >> 8) & 0xff;
278278
my$b3 =$in & 0xff;
279279

280280
$b3map{$b1}{$b2}{$b3} =$out;
281281
}
282-
elsif ($in < 0x100000000)
282+
elsif ($in <= 0xffffffff)
283283
{
284284
my$b1 =$in >> 24;
285285
my$b2 = ($in >> 16) & 0xff;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp