]> Git Repo - qemu.git/blobdiff - qdict.c
Replace assert(0) with abort() or cpu_abort()
[qemu.git] / qdict.c
diff --git a/qdict.c b/qdict.c
index 7fb425a0cac830197cdf33050caaa6b1ab159c49..aae57bf450d4045fcb9233b1dadc90118bf88b59 100644 (file)
--- a/qdict.c
+++ b/qdict.c
@@ -194,8 +194,7 @@ double qdict_get_double(const QDict *qdict, const char *key)
     case QTYPE_QINT:
         return qint_get_int(qobject_to_qint(obj));
     default:
-        assert(0);
-        return 0.0;
+        abort();
     }
 }
 
This page took 0.026812 seconds and 4 git commands to generate.