]> git.saurik.com Git - cycript.git/blobdiff - Decode.cpp
Maintain type flags in Type subclass Copy() logic.
[cycript.git] / Decode.cpp
index c20fb1cd1aa3d18edcabac3f9b15583c2cbf987b..63bb9efe040e43284308107178ca4a25845dcd4e 100644 (file)
@@ -38,12 +38,17 @@ CYType *Primitive<char>::Decode(CYPool &pool) const {
 
 template <>
 CYType *Primitive<double>::Decode(CYPool &pool) const {
-    return $ CYType($ CYTypeVariable("double"));
+    return $ CYType($ CYTypeFloating(1));
 }
 
 template <>
 CYType *Primitive<float>::Decode(CYPool &pool) const {
-    return $ CYType($ CYTypeVariable("float"));
+    return $ CYType($ CYTypeFloating(0));
+}
+
+template <>
+CYType *Primitive<long double>::Decode(CYPool &pool) const {
+    return $ CYType($ CYTypeFloating(2));
 }
 
 template <>