Skip to content
This repository was archived by the owner on May 7, 2018. It is now read-only.

Commit ddc3387

Browse files
sferikkr
authored andcommitted
Convert hexadecimal literals to binary literals; remove comments
1 parent 5ebe4fd commit ddc3387

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

okjson.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# http://golang.org/src/pkg/json/decode.go and
2929
# http://golang.org/src/pkg/utf8/utf8.go
3030
module OkJson
31-
Upstream = '35'
31+
Upstream = '36'
3232
extend self
3333

3434

@@ -569,15 +569,15 @@ class Error < ::StandardError
569569
end
570570

571571

572-
Utagx = 0x80 # 1000 0000
573-
Utag2 = 0xc0 # 1100 0000
574-
Utag3 = 0xe0 # 1110 0000
575-
Utag4 = 0xf0 # 1111 0000
576-
Utag5 = 0xF8 # 1111 1000
577-
Umaskx = 0x3f # 0011 1111
578-
Umask2 = 0x1f # 0001 1111
579-
Umask3 = 0x0f # 0000 1111
580-
Umask4 = 0x07 # 0000 0111
572+
Utagx = 0b1000_0000
573+
Utag2 = 0b1100_0000
574+
Utag3 = 0b1110_0000
575+
Utag4 = 0b1111_0000
576+
Utag5 = 0b1111_1000
577+
Umaskx = 0b0011_1111
578+
Umask2 = 0b0001_1111
579+
Umask3 = 0b0000_1111
580+
Umask4 = 0b0000_0111
581581
Uchar1max = (1<<7) - 1
582582
Uchar2max = (1<<11) - 1
583583
Uchar3max = (1<<16) - 1

tested-on

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This commit was tested Mon Mar 18 23:47:25 PDT 2013
1+
This commit was tested Tue Mar 19 00:36:47 PDT 2013
22
using the following ruby interpreters:
33
ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-darwin11.3.0]
44
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.2.0]

0 commit comments

Comments
 (0)