OSDN Git Service
(root)
/
kcd
/
KCD.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d86e45f
)
NSNullをIntConvertableに
author
masakih
<masakih@users.sourceforge.jp>
Mon, 20 Nov 2017 14:41:35 +0000
(23:41 +0900)
committer
masakih
<masakih@users.sourceforge.jp>
Mon, 20 Nov 2017 14:41:35 +0000
(23:41 +0900)
KCD/IntConvertable.swift
patch
|
blob
|
history
diff --git
a/KCD/IntConvertable.swift
b/KCD/IntConvertable.swift
index
adb07e3
..
b615a78
100644
(file)
--- a/
KCD/IntConvertable.swift
+++ b/
KCD/IntConvertable.swift
@@
-33,3
+33,11
@@
extension NSNumber: IntConvertable {
return self.intValue
}
}
+
+extension NSNull: IntConvertable {
+
+ func toInt() -> Int {
+
+ return 0
+ }
+}